logrotate
実行ファイル:/usr/sbin/logrotate
linuxでは /etc/cron.daily/logrotate にすでにローテーション設定されている
グローバルな設定:/etc/logrotate.conf
/var/www/hoge/hoge.log{
rotate 10
size 1M
missingok
notifempty
create 0644 apache apache
}
実行ファイル:/usr/sbin/logrotate
linuxでは /etc/cron.daily/logrotate にすでにローテーション設定されている
グローバルな設定:/etc/logrotate.conf
/var/www/hoge/hoge.log{
rotate 10
size 1M
missingok
notifempty
create 0644 apache apache
}