Commit c39b99b2 by Joe Blaylock

nginx logrotate fixup

* Set postrotate script to SIGHUP nginx after rotation
* Explicitly set permissions on freshly created logfiles
parent 64b1109e
# Put in place by ansible
{{log_base_dir}}/nginx/access.log {
create
create 0640 www-data adm
compress
delaycompress
dateext
......@@ -10,4 +10,9 @@
daily
rotate 90
size 1M
sharedscripts
postrotate
[ ! -f /var/run/nginx.pid ] || kill -HUP `cat /var/run/nginx.pid`
endscript
}
# Put in place by ansible
{{log_base_dir}}/nginx/error.log {
create
create 0640 www-data adm
compress
delaycompress
dateext
......@@ -10,4 +10,8 @@
daily
rotate 90
size 1M
sharedscripts
postrotate
[ ! -f /var/run/nginx.pid ] || kill -HUP `cat /var/run/nginx.pid`
endscript
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment