aboutsummaryrefslogtreecommitdiff
path: root/straper/db/public/logging/logrotate.d/nginx
diff options
context:
space:
mode:
Diffstat (limited to 'straper/db/public/logging/logrotate.d/nginx')
-rw-r--r--straper/db/public/logging/logrotate.d/nginx18
1 files changed, 18 insertions, 0 deletions
diff --git a/straper/db/public/logging/logrotate.d/nginx b/straper/db/public/logging/logrotate.d/nginx
new file mode 100644
index 0000000..423c6ad
--- /dev/null
+++ b/straper/db/public/logging/logrotate.d/nginx
@@ -0,0 +1,18 @@
+/var/log/nginx/*.log {
+ daily
+ missingok
+ rotate 14
+ compress
+ delaycompress
+ notifempty
+ create 0640 www-data adm
+ sharedscripts
+ prerotate
+ if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
+ run-parts /etc/logrotate.d/httpd-prerotate; \
+ fi \
+ endscript
+ postrotate
+ invoke-rc.d nginx rotate >/dev/null 2>&1
+ endscript
+}