jgeiger-itvocal
New Member
- Joined
- Apr 27, 2017
- Messages
- 6
- Reaction score
- 1
After the last update update725 on a Centos 6 Asterisk 13 Freepbx 12, I get an email every night from cron saying:
Subject:Anacron job 'cron.daily' on pbx
/etc/cron.daily/logrotate:
error: asterisk:5 unknown option 'su' -- ignoring line
error: asterisk:5 unexpected text
To fix it I removed the su asterisk line. Then removed everything after create on that line. Is there any downside to my changes?
So it looks like this:
Subject:Anacron job 'cron.daily' on pbx
/etc/cron.daily/logrotate:
error: asterisk:5 unknown option 'su' -- ignoring line
error: asterisk:5 unexpected text
To fix it I removed the su asterisk line. Then removed everything after create on that line. Is there any downside to my changes?
So it looks like this:
Code:
cat /etc/logrotate.d/asterisk
/var/log/asterisk/full {
missingok
rotate 8
daily
create
postrotate
/usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
endscript
}
Last edited by a moderator: