diff options
Diffstat (limited to 'network/lighttpd2/conf/lighttpd2.logrotate')
-rw-r--r-- | network/lighttpd2/conf/lighttpd2.logrotate | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/network/lighttpd2/conf/lighttpd2.logrotate b/network/lighttpd2/conf/lighttpd2.logrotate index 19a2f5abeb..04d448ac6b 100644 --- a/network/lighttpd2/conf/lighttpd2.logrotate +++ b/network/lighttpd2/conf/lighttpd2.logrotate @@ -1,16 +1,32 @@ -/var/log/lighttpd2/*.log { +/var/log/lighttpd2/access.log /var/log/lighttpd2/error.log { daily missingok copytruncate - rotate 7 - create 0644 lighttpd lighttpd + rotate 30 + create 0644 lighttpd root compress notifempty - su lighttpd lighttpd + su lighttpd root sharedscripts postrotate - if [ -x /etc/rc.d/rc.lighttpd2 -a -f /var/run/lighttpd.pid ]; then - /etc/rc.d/rc.lighttpd2 reload + if [ -x /etc/rc.d/rc.lighttpd2 -a -f /var/run/lighttpd2/lighttpd2.pid ]; then + /etc/rc.d/rc.lighttpd2 restart + fi + endscript +} + +/var/log/lighttpd2/lighttpd2.log { + daily + missingok + copytruncate + rotate 30 + create 0644 root root + compress + notifempty + sharedscripts + postrotate + if [ -x /etc/rc.d/rc.lighttpd2 -a -f /var/run/lighttpd2/lighttpd2.pid ]; then + /etc/rc.d/rc.lighttpd2 restart fi endscript } |