Fixed in version 1.1...
I noticed that my /var/log/asterisk/full item was getting quite large and that there was no logfile rotations. Comparing with my old trixbox install, pbx-in-a-flash does not have the log rotations for asterisk (/etc/logrotate.d/asterisk). I copied my old trixbox /etc/logrotate.d/asterisk to the new pbx-in-a-flash box and now I have rotations again. It is a fairly simple rotation file - I am including it here for reference:
I noticed that my /var/log/asterisk/full item was getting quite large and that there was no logfile rotations. Comparing with my old trixbox install, pbx-in-a-flash does not have the log rotations for asterisk (/etc/logrotate.d/asterisk). I copied my old trixbox /etc/logrotate.d/asterisk to the new pbx-in-a-flash box and now I have rotations again. It is a fairly simple rotation file - I am including it here for reference:
Code:
/var/log/asterisk/*log {
missingok
rotate 5
weekly
create 0640 asterisk asterisk
postrotate
/usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
endscript
}
/var/log/asterisk/full {
missingok
rotate 5
daily
create 0640 asterisk asterisk
postrotate
/usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
endscript
}
/var/log/asterisk/cdr-csv/*csv {
missingok
rotate 5
monthly
create 0640 asterisk asterisk
}
/var/log/atftp.log {
missingok
rotate 5
monthly
create 0640 nobody nobody
}