lighttpd/lighttpd.logrotate

16 lines
445 B
Plaintext
Raw Normal View History

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