aboutsummaryrefslogtreecommitdiffstats
path: root/main/lighttpd/lighttpd.logrotate
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2009-07-27 06:39:43 +0000
committerLeonardo Arena <rnalrd@gmail.com>2009-07-27 06:39:43 +0000
commitc66164b230fc33d7a903bbd1da6f803c2cadd0e2 (patch)
tree5b2c145554a597182448ac64167be76fd904d392 /main/lighttpd/lighttpd.logrotate
parentaad5f530b5a45159e9420d654173345006bde998 (diff)
parentdb7bf56b641e8ebb35d6f24ca8bca0b3b9e45c19 (diff)
downloadaports-c66164b230fc33d7a903bbd1da6f803c2cadd0e2.tar.bz2
aports-c66164b230fc33d7a903bbd1da6f803c2cadd0e2.tar.xz
Merge branch 'master' of git://dev.alpinelinux.org/aports
Diffstat (limited to 'main/lighttpd/lighttpd.logrotate')
-rw-r--r--main/lighttpd/lighttpd.logrotate17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/lighttpd/lighttpd.logrotate b/main/lighttpd/lighttpd.logrotate
new file mode 100644
index 0000000000..76f0ef3ff5
--- /dev/null
+++ b/main/lighttpd/lighttpd.logrotate
@@ -0,0 +1,17 @@
+# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/lighttpd.logrotate,v 1.2 2006/05/30 19:49:29 bangert Exp $
+# lighttpd logrotate script for Gentoo
+
+/var/log/lighttpd/*.log {
+ daily
+ missingok
+ copytruncate
+ rotate 7
+ compress
+ notifempty
+ sharedscripts
+ postrotate
+ if [ -f /var/run/lighttpd.pid ]; then \
+ /etc/init.d/lighttpd reload > /dev/null 2>&1 || true ; \
+ fi;
+ endscript
+}