summaryrefslogtreecommitdiff
path: root/roles/nginx/files/nginx.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'roles/nginx/files/nginx.logrotate')
-rw-r--r--roles/nginx/files/nginx.logrotate7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/nginx/files/nginx.logrotate b/roles/nginx/files/nginx.logrotate
new file mode 100644
index 0000000..2f8bba5
--- /dev/null
+++ b/roles/nginx/files/nginx.logrotate
@@ -0,0 +1,7 @@
+/var/log/nginx/*.log {
+ missingok
+ sharedscripts
+ postrotate
+ /etc/init.d/nginx --quiet --ifstarted reopen
+ endscript
+}