summarylogtreecommitdiffstats
path: root/openresty.logrotate
diff options
context:
space:
mode:
authorDaichi Shinozaki2015-07-17 15:25:56 +0100
committerDaichi Shinozaki2015-07-17 15:25:56 +0100
commitdf367a385e63cfdf7b8c6b4862b2c6fed13d78a6 (patch)
tree4c0a182e8431d7b8b411362bc2ddbb7cce0e109b /openresty.logrotate
downloadaur-df367a385e63cfdf7b8c6b4862b2c6fed13d78a6.tar.gz
Initial import
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
+}