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