Chris@1586: # see "man logrotate" for details Chris@1586: # rotate log files weekly Chris@1586: weekly Chris@1586: Chris@1590: # use the syslog group by default, since this is the owning group Chris@1590: # of /var/log/syslog. Chris@1590: su root syslog Chris@1590: Chris@1586: # keep 4 weeks worth of backlogs Chris@1586: rotate 4 Chris@1586: Chris@1586: # create new (empty) log files after rotating old ones Chris@1586: create Chris@1586: Chris@1586: # uncomment this if you want your log files compressed Chris@1586: #compress Chris@1586: Chris@1586: # packages drop log rotation information into this directory Chris@1586: include /etc/logrotate.d Chris@1586: Chris@1586: # no packages own wtmp, or btmp -- we'll rotate them here Chris@1586: /var/log/wtmp { Chris@1586: missingok Chris@1586: monthly Chris@1586: create 0664 root utmp Chris@1586: rotate 1 Chris@1586: } Chris@1586: Chris@1586: /var/log/btmp { Chris@1586: missingok Chris@1586: monthly Chris@1586: create 0660 root utmp Chris@1586: rotate 1 Chris@1586: } Chris@1586: Chris@1586: # system-specific logs may be configured here Chris@1586: /var/www/code/log/*.log { Chris@1586: weekly Chris@1586: missingok Chris@1586: rotate 52 Chris@1586: compress Chris@1586: delaycompress Chris@1586: create 640 code code Chris@1586: sharedscripts Chris@1586: postrotate Chris@1586: touch /var/www/code/restart_files/restart.txt Chris@1586: endscript Chris@1586: } Chris@1586: Chris@1586: /var/log/reposman.log { Chris@1586: weekly Chris@1586: missingok Chris@1586: rotate 52 Chris@1586: compress Chris@1586: delaycompress Chris@1586: create 640 www-data code Chris@1586: sharedscripts Chris@1586: } Chris@1586: Chris@1586: /var/log/external-repos.log { Chris@1586: weekly Chris@1586: missingok Chris@1586: rotate 52 Chris@1586: compress Chris@1586: delaycompress Chris@1586: create 640 www-data code Chris@1586: sharedscripts Chris@1586: } Chris@1586: