操作
Debian/Ubuntu 的 Logrotate 示例¶
在 Debian 修复损坏的“/etc/logrotate.d/lighttpd”脚本之前,您应该使用这个
/var/log/lighttpd/*.log {
daily
missingok
copytruncate
rotate 7
compress
notifempty
sharedscripts
postrotate
if [ -f /var/run/lighttpd.pid ]; then \
/bin/kill -HUP $(</var/run/lighttpd.pid); \
fi;
endscript
}
Ubuntu 同样适用。
参考资料- https://bugs.launchpad.net/ubuntu/+source/lighttpd/+bug/74458
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=380080
如果您能联系到他们的开发者,请把这个页面的链接发给他们!:)