logrotateの設定を変更する。
vi /etc/logrotate.d/httpd
/var/log/httpd/*log {
missingok
notifempty
sharedscripts
postrotate
#/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true #ここを削除
service httpd condrestart 2> /dev/null || true #ここを追加
endscript
}
設定ファイルにミスがないか確認
logrotate -dv /etc/logrotate.d/httpd参照:Bug 64133 – sometimes upon SIGHUP it doesn't like certificates and apache STOPS



0 コメント:
コメントを投稿