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