揮発性のメモ2

http://d.hatena.ne.jp/iww/

logrotateされてないときの対処

logrotate(ログローテート)の動作確認 | OpenGroove

Usage: logrotate [OPTION...] <configfile>
  -d, --debug               Don't do anything, just test (implies -v)
  -f, --force               Force file rotation
  -m, --mail=command        Command to send mail (instead of `/bin/mail')
  -s, --state=statefile     Path of state file
  -v, --verbose             Display messages during rotation

テスト

logrotate -d /etc/logrotate.conf

強制実行

logrotate -f /etc/logrotate.conf