diff options
Diffstat (limited to 'network/lighttpd/conf/lighttpd.logrotate')
-rw-r--r-- | network/lighttpd/conf/lighttpd.logrotate | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/network/lighttpd/conf/lighttpd.logrotate b/network/lighttpd/conf/lighttpd.logrotate new file mode 100644 index 0000000000..65c13f36c8 --- /dev/null +++ b/network/lighttpd/conf/lighttpd.logrotate @@ -0,0 +1,15 @@ +/var/log/lighttpd/*.log { + daily + missingok + copytruncate + rotate 7 + create 0644 lighttpd lighttpd + compress + notifempty + sharedscripts + postrotate + if [ -x /etc/rc.d/rc.lighttpd -a -f /var/run/lighttpd.pid ]; then + /etc/rc.d/rc.lighttpd reload + fi + endscript +} |