logrotateの履歴

実行ファイル:/usr/sbin/logrotate

linuxでは /etc/cron.daily/logrotate にすでにローテーション設定されている

グローバルな設定:/etc/logrotate.conf

個別の設定 /etc/logrotate.d/hoge

/var/www/hoge/hoge.log{
    rotate 10
    size 1M
    missingok
    notifempty
    create 0644 apache apache
}


試したい場合は /etc/cron.daily/logrotate を実行すればOK

テストは
# logrotate -dv /etc/logrotate.d/chkrootkit