Created
March 12, 2019 07:38
-
-
Save nullne/6453d3a3a1d194414724673ce2ec820b to your computer and use it in GitHub Desktop.
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