Skip to content

Instantly share code, notes, and snippets.

@carloscortegagna
Created September 2, 2016 14:19
Show Gist options
  • Save carloscortegagna/e9baf77ab448d782209a3d31c65b0cde to your computer and use it in GitHub Desktop.
Save carloscortegagna/e9baf77ab448d782209a3d31c65b0cde to your computer and use it in GitHub Desktop.
/usr/local/bsmart/current/log/activations.log {
daily
missingok
rotate 7
compress
delaycompress
notifempty
copytruncate
}
# "daily" fa rotate del log ogni giorno. si può scegliere anche "weekly" o "monthly"
# "rotate 7" mantiene 7 file di log, oltre a quello attuale.
# aumentare se si vuole più storico, i file oltre al settimo vengono cancellati
# eventualmente per fare rotate di tutti i log (è quindi sufficiente un solo file /etc/logrotate.d/bsmart)
/usr/local/bsmart/current/log/*.log {
....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment