summarylogtreecommitdiffstats
path: root/logrotate
diff options
context:
space:
mode:
authorHui Yiqun2015-12-21 12:59:26 +0800
committerHui Yiqun2015-12-21 12:59:26 +0800
commit3e59ccd0f239cfc4a0c650e103cceff4e9d9b89c (patch)
treec1c2c0410b0c39545fefc1322d744948a6def198 /logrotate
downloadaur-3e59ccd0f239cfc4a0c650e103cceff4e9d9b89c.tar.gz
initial commit
Diffstat (limited to 'logrotate')
-rw-r--r--logrotate10
1 files changed, 10 insertions, 0 deletions
diff --git a/logrotate b/logrotate
new file mode 100644
index 000000000000..61237601f6da
--- /dev/null
+++ b/logrotate
@@ -0,0 +1,10 @@
+/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
+}