Skip to content

Instantly share code, notes, and snippets.

@tylerpearson
Created August 18, 2016 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylerpearson/5cefdecb0eb0273795a308ad41181f9b to your computer and use it in GitHub Desktop.
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
/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