summaryrefslogtreecommitdiff
path: root/nginx-pam/logrotate
diff options
context:
space:
mode:
authorMark Weiman <mark.weiman@markzz.com>2016-01-02 01:22:31 -0500
committerMark Weiman <mark.weiman@markzz.com>2016-01-02 01:22:31 -0500
commit5c3b7276abf0d01b53662f38db5b4d52377343ed (patch)
tree8286ac3539ed49a2a1e9a65f8b7fca0976a06de6 /nginx-pam/logrotate
downloadmarkzz-5c3b7276abf0d01b53662f38db5b4d52377343ed.tar.gz
markzz-5c3b7276abf0d01b53662f38db5b4d52377343ed.zip
initial commit
Signed-off-by: Mark Weiman <mark.weiman@markzz.com>
Diffstat (limited to 'nginx-pam/logrotate')
-rw-r--r--nginx-pam/logrotate11
1 files changed, 11 insertions, 0 deletions
diff --git a/nginx-pam/logrotate b/nginx-pam/logrotate
new file mode 100644
index 0000000..4726b3d
--- /dev/null
+++ b/nginx-pam/logrotate
@@ -0,0 +1,11 @@
+/var/log/nginx/*log {
+ missingok
+ create 640 http log
+ su http log
+ sharedscripts
+ compress
+ postrotate
+ test ! -r /run/nginx.pid || kill -USR1 `cat /run/nginx.pid`
+ endscript
+}
+