log rotation config
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 | |
missingok | |
rotate 3 | |
compress | |
delaycompress | |
notifempty | |
create 640 root root | |
sharedscripts | |
postrotate | |
if [ -f /var/run/nginx.pid ]; then | |
kill -USR1 `cat /var/run/nginx.pid` | |
fi | |
endscript | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment