screenlog does not roll on restart

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

screenlog does not roll on restart

Postby ronsrussell » Tue Oct 06, 2009 4:03 pm

On a new install (using VICIbox) I have cron job configured to restart nightly. But the screenlog does not roll over. ADMIN_restart_roll_logs.pl script is in /etc/init.d/vicidial init script but does not seem to work.
ronsrussell
 

Postby williamconley » Mon Oct 12, 2009 11:19 pm

edit the file. at the end of the file we have:

Code: Select all
print "rolling Asterisk screen log...\n";
`mv -f /screenlog.0 /screenlog.0.$now_date`;

print "rolling Asterisk root screen log...\n";
`mv -f /root/screenlog.0 /root/screenlog.0.$now_date`;

print "rolling Asterisk var log screen log...\n";
`mv -f /var/log/asterisk/screenlog.0 /var/log/asterisk/screenlog.0.$now_date`;


print "FINISHED... EXITING\n";

exit;

add this:
Code: Select all
print "rolling Asterisk astguiclient screen log...\n";
`mv -f /var/log/astguiclient/screenlog.0 /var/log/astguiclient/screenlog.0.$now_date`;
and be sure your script has permission to run as well. test it from the command line.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # 888-883-8488 # +44(203) 769-2294
williamconley
 
Posts: 20441
Joined: Wed Oct 31, 2007 4:17 pm
Location: Bartow, FL (In the boondocks)

Postby ronsrussell » Tue Oct 13, 2009 3:24 am

That worked.
Actually I modified the last line in the script by replacing "asterisk" with "astguiclient". And I modified the "ADMIN_restart_roll_logs.pl" file in both the /usr/share & the /usr/src directories.
Thanks for the good advice.
ronsrussell
 


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 130 guests