summarylogtreecommitdiffstats
path: root/logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'logrotate')
-rw-r--r--logrotate11
1 files changed, 11 insertions, 0 deletions
diff --git a/logrotate b/logrotate
new file mode 100644
index 000000000000..b7719f0ce97c
--- /dev/null
+++ b/logrotate
@@ -0,0 +1,11 @@
+/var/log/nginx/*log
+{
+ missingok
+ notifempty
+ create 640 http log
+ sharedscripts
+ compress
+ postrotate
+ test ! -r /var/run/nginx.pid || kill -USR1 `cat /var/run/nginx.pid`
+ endscript
+}