annotate deploy/config/logrotate.conf @ 1628:9c5f8e24dadc live tip

Quieten this cron script
author Chris Cannam
date Tue, 25 Aug 2020 11:38:49 +0100
parents c18460da6620
children
rev   line source
Chris@1586 1 # see "man logrotate" for details
Chris@1586 2 # rotate log files weekly
Chris@1586 3 weekly
Chris@1586 4
Chris@1590 5 # use the syslog group by default, since this is the owning group
Chris@1590 6 # of /var/log/syslog.
Chris@1590 7 su root syslog
Chris@1590 8
Chris@1586 9 # keep 4 weeks worth of backlogs
Chris@1586 10 rotate 4
Chris@1586 11
Chris@1586 12 # create new (empty) log files after rotating old ones
Chris@1586 13 create
Chris@1586 14
Chris@1586 15 # uncomment this if you want your log files compressed
Chris@1586 16 #compress
Chris@1586 17
Chris@1586 18 # packages drop log rotation information into this directory
Chris@1586 19 include /etc/logrotate.d
Chris@1586 20
Chris@1586 21 # no packages own wtmp, or btmp -- we'll rotate them here
Chris@1586 22 /var/log/wtmp {
Chris@1586 23 missingok
Chris@1586 24 monthly
Chris@1586 25 create 0664 root utmp
Chris@1586 26 rotate 1
Chris@1586 27 }
Chris@1586 28
Chris@1586 29 /var/log/btmp {
Chris@1586 30 missingok
Chris@1586 31 monthly
Chris@1586 32 create 0660 root utmp
Chris@1586 33 rotate 1
Chris@1586 34 }
Chris@1586 35
Chris@1586 36 # system-specific logs may be configured here
Chris@1586 37 /var/www/code/log/*.log {
Chris@1586 38 weekly
Chris@1586 39 missingok
Chris@1586 40 rotate 52
Chris@1586 41 compress
Chris@1586 42 delaycompress
Chris@1586 43 create 640 code code
Chris@1586 44 sharedscripts
Chris@1586 45 postrotate
Chris@1586 46 touch /var/www/code/restart_files/restart.txt
Chris@1586 47 endscript
Chris@1586 48 }
Chris@1586 49
Chris@1586 50 /var/log/reposman.log {
Chris@1586 51 weekly
Chris@1586 52 missingok
Chris@1586 53 rotate 52
Chris@1586 54 compress
Chris@1586 55 delaycompress
Chris@1586 56 create 640 www-data code
Chris@1586 57 sharedscripts
Chris@1586 58 }
Chris@1586 59
Chris@1586 60 /var/log/external-repos.log {
Chris@1586 61 weekly
Chris@1586 62 missingok
Chris@1586 63 rotate 52
Chris@1586 64 compress
Chris@1586 65 delaycompress
Chris@1586 66 create 640 www-data code
Chris@1586 67 sharedscripts
Chris@1586 68 }
Chris@1586 69