apache2 の停止 logrotateを修正

Contributed by: akira on 2011年10月30日(日) 18:17 JST

Last modified on

gracefulモードでの再起動で失敗している可能性あり。
reload は、graceful モードである。
/etc/logrotate.d/apache2にある、reloadをrestartに修正

 /var/log/apache2/*.log {
weekly
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
/etc/init.d/apache2 restart > /dev/null
endscript
}

コメント (0件)

Geeklog Site - apache2 の停止 logrotateを修正
https://geeklog.craine.ne.jp/article.php?story=20111030181749230