Add logrotate script for Asterisk
[asterisk/asterisk.git] / contrib / scripts / asterisk.logrotate
1 /var/log/asterisk/debug /var/log/asterisk/console /var/log/asterisk/full /var/log/asterisk/debug /var/log/asterisk/*log {
2         weekly
3         missingok
4         rotate 52
5         compress
6         delaycompress
7         notifempty
8         create 640 root root 
9         sharedscripts
10         postrotate
11                 /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null 
12         endscript
13