Bug#275808: logrotate errors and emails

Daniel Pocock Daniel Pocock <daniel@readytechnology.co.uk>, 275808@bugs.debian.org
Sun, 10 Oct 2004 13:41:06 +0100


Package: asterisk

Please don't restart Asterisk from the logrotate script, the "logger 
reload" command will have the desired effect and will make the package 
better:
- it doesn't cause any disruption to calls in progress
- it won't generate output causing cron to send emails to the system admin:

/var/log/asterisk/cdr-csv/Master.csv /var/log/asterisk/debug 
/var/log/asterisk/event_log /var/log/asterisk/messages {
       weekly
       missingok
       rotate 4
       sharedscripts
       postrotate
#                /usr/sbin/invoke-rc.d asterisk restart
                /usr/sbin/asterisk -rqx "logger reload"
       endscript
}