Project

General

Profile

Actions

Logrotate sample for Debian/Ubuntu

Until debian fixes the broken "/etc/logrotate.d/lighttpd" script you should use this one:

/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
}

The same applies to Ubuntu.

References:

If you are in contact with their developers send them the link to this page please! :)

Updated by nitrox over 11 years ago · 2 revisions