Created
February 23, 2016 20:04
-
-
Save nmattam/c62b7d125d6ae00ef41f to your computer and use it in GitHub Desktop.
nginx log rotate script
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/opscode/nginx/*.log { | |
rotate 10 | |
size 104857600 | |
create 644 opscode opscode | |
delaycompress | |
sharedscripts | |
postrotate | |
/opt/opscode/embedded/sbin/nginx -s reopen | |
endscript | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment