summaryrefslogtreecommitdiffstats
path: root/network/nginx/nginx.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'network/nginx/nginx.logrotate')
-rw-r--r--network/nginx/nginx.logrotate11
1 files changed, 11 insertions, 0 deletions
diff --git a/network/nginx/nginx.logrotate b/network/nginx/nginx.logrotate
new file mode 100644
index 0000000000..d95c808449
--- /dev/null
+++ b/network/nginx/nginx.logrotate
@@ -0,0 +1,11 @@
+/var/log/nginx/*_log {
+ rotate 10
+ notifempty
+ size=5M
+ compress
+ delaycompress
+ sharedscripts
+ postrotate
+ /etc/rc.d/rc.nginx rotate
+ endscript
+}