Queue_log not register after rotate

I changed the file retention from queue_logs daily to weekly, it made the rotation every weekly but the queue_log not register anything after rotate, I have to run “logger reload” in the CLI to start to register the calls.

It is the logrotate.d/asterisk file edited

/var/log/asterisk/queue_log {
weekly
missingok
rotate 5
notifempty
sharedscripts
create 0640 asterisk asterisk
su asterisk asterisk
}

/var/spool/mail/asterisk {
weekly
missingok
rotate 5
notifempty
sharedscripts
create 0660 asterisk mail
su asterisk mail
}

/var/spool/mail/asterisk
/var/log/asterisk/freepbx_debug.log
/var/log/asterisk/messages
/var/log/asterisk/event_log
/var/log/asterisk/full
/var/log/asterisk/dtmf
/var/log/asterisk/fail2ban {
daily
missingok
rotate 7
notifempty
sharedscripts
create 0640 asterisk asterisk
su asterisk asterisk
postrotate
/usr/sbin/asterisk -rx ‘logger reload’ > /dev/null 2> /dev/null
endscript
}
#This comment is to fix rpm file replacing
#Config file built on Wed Jul 25 22:34:59 UTC 2018

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.