Fixed logrotate script to have proper permissions and wqrestart nginx after logrotate, otherwise it won't write the log anymore

This commit is contained in:
Martin Mahner 2015-07-08 05:14:48 +00:00
parent b5ae93f678
commit bf1aa3b980

View file

@ -2,7 +2,18 @@
monthly monthly
rotate 52 rotate 52
dateext dateext
create
missingok missingok
compress 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
} }