1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# lighttpd logrotate script for Gentoo /var/log/lighttpd/*.log { daily missingok copytruncate rotate 7 compress notifempty sharedscripts postrotate test -e /run/openrc/softlevel && /etc/init.d/lighttpd reload 1>/dev/null || true test -e /run/systemd/system && systemctl reload lighttpd.service || true endscript }