In article <[EMAIL PROTECTED]>,
Hilton Williams <[EMAIL PROTECTED]> wrote:
>
> [EMAIL PROTECTED] uses the following file:
>
> /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
> }
The above doesn't catch /var/log/asterisk/messages, which should be
added to the first entry.
Also, both entries should also have the "sharedscripts" directive,
so that "logger reload" will only be called once after all the rotates,
instead of separately for each file.
Cheers
Tony
--
Tony Mountifield
Work: [EMAIL PROTECTED] - http://www.softins.co.uk
Play: [EMAIL PROTECTED] - http://tony.mountifield.org
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users