~allenap/maas/packaging.move-dhcp-helper-to-lib

« back to all changes in this revision

Viewing changes to debian/maas-common.logrotate

  • Committer: MAAS Lander
  • Author(s): Andres Rodriguez
  • Date: 2017-03-28 19:40:47 UTC
  • mfrom: (550.1.1 packaging)
  • Revision ID: maas_lander-20170328194047-fgi2bg7lsbcw4821
[r=mpontillo][bug=1677005][author=andreserl] Improve log rotation for maas.log

Match rotation of maas.log to be weekly (same as regiond.log and rackd.log), but store logs for 8 weeks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/var/log/maas/maas.log
2
2
{
3
 
        rotate 7
4
 
        daily
 
3
        rotate 8
 
4
        weekly
5
5
        missingok
6
6
        notifempty
7
7
        delaycompress
8
8
        compress
 
9
        # Don't rotate unless the log is at least 10MB.
 
10
        minsize 10M
 
11
        # Force rotation if the log grows beyond 50MB.
 
12
        maxsize 50M
9
13
}