8ecffc1
8ecffc1
# Warning: Using logrotate together with `max-workers` Lighty option is
8ecffc1
# a pretty complicated thing:
8ecffc1
# https://redmine.lighttpd.net/projects/1/wiki/Docs_ModAccesslog
8ecffc1
# If you use max-workers, you probably want cronolog, which in turn means
8ecffc1
# you shouldn't be using logrotate at all.
8ecffc1
eabcb45
/var/log/lighttpd/*log {
eabcb45
    missingok
eabcb45
    notifempty
eabcb45
    sharedscripts
eabcb45
    postrotate
0dac88c
        /usr/bin/killall -HUP lighttpd &>/dev/null || :
eabcb45
    endscript
eabcb45
}