うちはapacheのアクセスログの置き場所を変更しているので、logrotate の設定ファイルも書き換えておかないとキチンとrotateしてくれない。
変更するのは
/etc/logrotate.d/httpd
ファイル。
コピーを取って httpd_log とでも名前をつけておく。
中には
/var/log/httpd/*log {
missingok
notifempty
sharedscripts
delaycompress
postrotate
/sbin/service httpd reload > /dev/null 2>/dev/null || true
endscript
}
のように書いてあるので
1行目の指定を次のように変更。
/var/log/httpd_log/*log {
・・・
・・・
おわり。