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