[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[fol] Re: rotation of syslog


In article <MAEDA.98Jan16162647 _at_ dsl0.is.uec.ac.jp>,
	maeda _at_ dsl0.is.uec.ac.jp (MAEDA Atusi) writes:

> FreeBSDのnewsyslogはもっとずっと賢いみたいですね。

ソースの頭を読むとMITから来たもののようです。んでさらに OSF の手が入っ
たものを NetBSD や FreeBSD が使っているのかな。すでに、双方バラバラに
手が入ってます。

最近のFreeBSD版の何がベンリって、syslogd 経由ではなく直にログを書いて
るような、たとえばapache の作るログも対象にできる点ですね。pid ファイ
ルがあって、そこに書かれた pid にSIGHUP を送ればログの close/open をし
てくれるデーモンのログファイルであれば扱えます。

newsyslog.c の頭はこんなかんじ。

/*
 * This file contains changes from the Open Software Foundation.
 */

/*

Copyright 1988, 1989 by the Massachusetts Institute of Technology

Permission to use, copy, modify, and distribute this software
and its documentation for any purpose and without fee is
hereby granted, provided that the above copyright notice
appear in all copies and that both that copyright notice and
this permission notice appear in supporting documentation,
and that the names of M.I.T. and the M.I.T. S.I.P.B. not be
used in advertising or publicity pertaining to distribution
of the software without specific, written prior permission.
M.I.T. and the M.I.T. S.I.P.B. make no representations about
the suitability of this software for any purpose.  It is
provided "as is" without express or implied warranty.

*/

-- 
池田研二  調布市多摩川在住

この情報があなたの探していたものかどうか選択してください。
yes/まさにこれだ!   no/違うなぁ   part/一部見つかった   try/これで試してみる

あなたが探していた情報はどのようなことか、ご自由に記入下さい。特に「まさにこれだ!」と言う場合は記入をお願いします。
例:「複数のマシンからCATV経由でipmasqueradeを利用してWebを参照したい場合の設定について」