Commit a0cea691 by Joe Blaylock

Merge pull request #104 from edx/jrbl/bugfix/log_rotation

nginx logrotate fixup
parents 64b1109e c39b99b2
# Put in place by ansible # Put in place by ansible
{{log_base_dir}}/nginx/access.log { {{log_base_dir}}/nginx/access.log {
create create 0640 www-data adm
compress compress
delaycompress delaycompress
dateext dateext
...@@ -10,4 +10,9 @@ ...@@ -10,4 +10,9 @@
daily daily
rotate 90 rotate 90
size 1M size 1M
sharedscripts
postrotate
[ ! -f /var/run/nginx.pid ] || kill -HUP `cat /var/run/nginx.pid`
endscript
} }
# Put in place by ansible # Put in place by ansible
{{log_base_dir}}/nginx/error.log { {{log_base_dir}}/nginx/error.log {
create create 0640 www-data adm
compress compress
delaycompress delaycompress
dateext dateext
...@@ -10,4 +10,8 @@ ...@@ -10,4 +10,8 @@
daily daily
rotate 90 rotate 90
size 1M 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