项目

通用

个人资料

操作

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 同样适用。

参考资料

如果您能联系到他们的开发者,请把这个页面的链接发给他们!:)

nitrox近 13 年前更新 · 2 次修订