このエントリーをブックマークに追加 このエントリをlivedoorクリップに追加 Yahoo!ブックマークに登録

httpdのlogrotateのタイミングでhttpdが落ちてしまう時の対処法

2008年11月25日火曜日 by mikuta

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

Filed under having  

0 コメント: