summaryrefslogtreecommitdiff
path: root/community-testing/nginx/nginx.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/nginx/nginx.logrotate')
-rw-r--r--community-testing/nginx/nginx.logrotate8
1 files changed, 8 insertions, 0 deletions
diff --git a/community-testing/nginx/nginx.logrotate b/community-testing/nginx/nginx.logrotate
new file mode 100644
index 000000000..d490d5d9b
--- /dev/null
+++ b/community-testing/nginx/nginx.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
+}