aboutsummaryrefslogtreecommitdiffstats
path: root/main/darkhttpd/darkhttpd.logrotate
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-11-27 10:03:48 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2014-11-27 10:05:22 +0100
commit73233fdad1a70afa9ab3cb07ce5ecf451742ba11 (patch)
treef6b89ba9175bb35a0d9801e8c300024d4c871d38 /main/darkhttpd/darkhttpd.logrotate
parentf37e88eab8c001de8fc9d1a233bfe43d6d9f18dc (diff)
downloadaports-73233fdad1a70afa9ab3cb07ce5ecf451742ba11.tar.bz2
aports-73233fdad1a70afa9ab3cb07ce5ecf451742ba11.tar.xz
main/darkhttpd: add logrotate script and support for args
we add support for following config seettings in conf.d: addr: set listen address port: set lisetn port mimetypes: set file with mimetypes
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
+}