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