Last active
December 19, 2015 23:08
-
-
Save a2f0/6032220 to your computer and use it in GitHub Desktop.
nginx logrorate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/log/nginx/*.log { | |
daily | |
compress | |
delaycompress | |
rotate 7 | |
missingok | |
sharedscripts | |
postrotate | |
test ! -f /var/run/nginx.pid || kill -USR1 `cat /var/run/nginx.pid` | |
touch /opt/rails/asap/app/2014/current/tmp/restart.txt | |
endscript | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment