-
-
Save gigorok/8072f2adb559a202ca470975aeb75506 to your computer and use it in GitHub Desktop.
Logrotate for Rails
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
# | |
# File: /etc/logrotate.d/rails | |
# Test: logrotate -f /etc/logrotate.d/rails | |
# | |
/var/www/*/log/*.log { | |
daily | |
dateext | |
notifempty | |
missingok | |
rotate 30 | |
compress | |
delaycompress | |
copytruncate | |
sharedscripts | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It saved my time +1