aboutsummaryrefslogtreecommitdiffstats
path: root/main/darkhttpd/darkhttpd.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'main/darkhttpd/darkhttpd.logrotate')
-rw-r--r--main/darkhttpd/darkhttpd.logrotate14
1 files changed, 14 insertions, 0 deletions
diff --git a/main/darkhttpd/darkhttpd.logrotate b/main/darkhttpd/darkhttpd.logrotate
new file mode 100644
index 0000000000..c61a60fd87
--- /dev/null
+++ b/main/darkhttpd/darkhttpd.logrotate
@@ -0,0 +1,14 @@
+/var/log/darkhttpd/access.log {
+ monthly
+ missingok
+ copytruncate
+ rotate 7
+ compress
+ notifempty
+ sharedscripts
+ postrotate
+ if /sbin/rc-service --quiet darkhttpd status; then \
+ /sbin/rc-service --quiet darkhttpd restart;\
+ fi
+ endscript
+}