summaryrefslogtreecommitdiff
path: root/network/lighttpd/lighttpd.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'network/lighttpd/lighttpd.logrotate')
-rw-r--r--network/lighttpd/lighttpd.logrotate14
1 files changed, 14 insertions, 0 deletions
diff --git a/network/lighttpd/lighttpd.logrotate b/network/lighttpd/lighttpd.logrotate
new file mode 100644
index 0000000000..598650a1f2
--- /dev/null
+++ b/network/lighttpd/lighttpd.logrotate
@@ -0,0 +1,14 @@
+/var/log/lighttpd/*.log {
+ daily
+ missingok
+ copytruncate
+ rotate 7
+ 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
+}