Created
August 18, 2016 21:59
-
-
Save tylerpearson/5cefdecb0eb0273795a308ad41181f9b to your computer and use it in GitHub Desktop.
restart rsyslog with logrotate on ubuntu. Even with copytruncate, rsyslog needed a restart to get the latest in the log
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/www/site/shared/log/sidekiq.log { | |
missingok | |
daily | |
rotate 7 | |
compress | |
delaycompress | |
notifempty | |
copytruncate | |
postrotate | |
sudo /etc/init.d/rsyslog restart | |
endscript | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment