summaryrefslogtreecommitdiff
path: root/nginx-pam/logrotate
diff options
context:
space:
mode:
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
+}
+