diff --git a/server/logrotate.conf b/server/logrotate.conf index ead7ea0..5bf60fc 100644 --- a/server/logrotate.conf +++ b/server/logrotate.conf @@ -2,7 +2,18 @@ monthly rotate 52 dateext - create missingok 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 }