/etc/rsyslog.confの設定で
/var/log/xxxx
-/var/log/xxx
のように - が付く場合と付かない場合では
どのように違うのでしょうか?
auth,authpriv.* /var/log/auth.log
*.*;auth,authpriv.none -/var/log/syslog
#cron.* /var/log/cron.log
daemon.* -/var/log/daemon.log
--------------------------------------
2010 FIFA World Cup News [Yahoo!Sports/sportsnavi]
http://pr.mail.yahoo.co.jp/southafrica2010/
オリジナル(?)のsyslogにもあった機能で、これは man rsyslog.conf に…
ありませんね。
http://www.rsyslog.com/doc-rsyslog_conf_actions.html
>> You may prefix each entry with the minus "-'' sign to omit syncing
>> the file after every logging. Note that you might lose information
>> if the system crashes right behind a write attempt. Nevertheless
>> this might give you back some performance, especially if you run
>> programs that use logging in a very verbose manner.
マイナス記号をつけると、通常のディスク書き込み時のバッファリングが
効くので性能改善になります。ですが、クラッシュするとまだ書き込まれて
いないデータは消えるでしょうね、という話です。
上のドキュメントはrsyslog-docパッケージに入っていると
思います(未確認)。
--
喜瀬“冬猫”浩