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
/sbin/service httpd reload > /dev/null 2>/dev/null || true
endscript
}
http://life1204.blogspot.jp/2008/11/httpdlogrotatehttpd.html
0 件のコメント:
コメントを投稿