aboutsummaryrefslogtreecommitdiffstats
path: root/main/nginx-initscripts/nginx.logrotate
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-09-05 12:37:43 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-09-05 13:05:36 +0200
commita06bd137ccd148f57e09f5ec9afcff356bac3b7c (patch)
treeb8d4bd57eb51bacee8395eef558be3782f79a183 /main/nginx-initscripts/nginx.logrotate
parent41e3fcac3cc4577b885f3629ecf0c0f99bb7ac7a (diff)
downloadaports-a06bd137ccd148f57e09f5ec9afcff356bac3b7c.tar.bz2
aports-a06bd137ccd148f57e09f5ec9afcff356bac3b7c.tar.xz
main/nginx-initscripts: move initscripts to shared package
Share the openrc initscript for the different nginx builds.
Diffstat (limited to 'main/nginx-initscripts/nginx.logrotate')
-rw-r--r--main/nginx-initscripts/nginx.logrotate12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/nginx-initscripts/nginx.logrotate b/main/nginx-initscripts/nginx.logrotate
new file mode 100644
index 0000000000..00e5a94eb5
--- /dev/null
+++ b/main/nginx-initscripts/nginx.logrotate
@@ -0,0 +1,12 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.logrotate,v 1.1 2010/01/03 20:29:40 djc Exp $
+
+/var/log/nginx/*.log {
+ missingok
+ sharedscripts
+ postrotate
+ test -r /var/run/nginx.pid && kill -USR1 `cat /var/run/nginx.pid`
+ endscript
+}
+