Created
December 9, 2014 10:02
-
-
Save panggi/004f3438bdd28ef22235 to your computer and use it in GitHub Desktop.
rails logrotate script
This file contains hidden or 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
| /opt/username/shared/log/*log { | |
| create 0644 username username | |
| su root username | |
| daily | |
| rotate 1 | |
| compress | |
| missingok | |
| notifempty | |
| sharedscripts | |
| postrotate | |
| service rails restart > /dev/null 2>/dev/null || true | |
| endscript | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment