summarylogtreecommitdiffstats
path: root/nginx.logrotate
diff options
context:
space:
mode:
authorLeo P2015-12-01 14:04:37 -0500
committerLeo P2015-12-01 14:04:37 -0500
commit62c687af52180967f388a628837587682ff438d0 (patch)
treebdac601c80ce4f28da4958272e7dead7acb0010c /nginx.logrotate
downloadaur-62c687af52180967f388a628837587682ff438d0.tar.gz
try out nchan
Diffstat (limited to 'nginx.logrotate')
-rw-r--r--nginx.logrotate11
1 files changed, 11 insertions, 0 deletions
diff --git a/nginx.logrotate b/nginx.logrotate
new file mode 100644
index 000000000000..f6f7246159d3
--- /dev/null
+++ b/nginx.logrotate
@@ -0,0 +1,11 @@
+/var/log/nginx/*log
+/var/log/nginx/*/*log
+{
+ daily
+ missingok
+ create 640 http log
+ compress
+ postrotate
+ [ ! -f /run/nginx.pid ] || kill -USR1 `cat /run/nginx.pid`
+ endscript
+}