summarylogtreecommitdiffstats
path: root/openresty.logrotate
diff options
context:
space:
mode:
authorDanil Syromolotov2017-11-12 19:54:15 +0500
committerDanil Syromolotov2017-11-12 19:54:15 +0500
commit6cc922e71703f86242563cfa8ab7ec7248d42e01 (patch)
tree4ad4f0e918bdcdbf4fef88c8a967f6d9ac12b539 /openresty.logrotate
downloadaur-openresty-ldap.tar.gz
initial commit
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
+}