Skip to content

Fix Screen Log Rotation on ViciBox Install

by Jon on December 8th, 2009

I have used the vicibox install a few times and noticed that the screen log does not automatically rotate and can get very, very large. So there are a couple of ways to handle this, first use a cron job to delete it on a daily basis if you don’t need it, or add a log rotation script in.

If you just want to delete it on a daily basis use the following procedure to create a cron job.

echo “rm /var/log/astguiclient/screenlog.0” >> /etc/cron.daily/droplog
chmod 755 /etc/cron.daily/droplog

If you would like to use log rotation apply the following fix.

Edit the /usr/share/astguiclient/ADMIN_restart_roll_logs.pl file with nano or your favorite text editor and we are going to add the following lines at the bottom.

print “rolling Asterisk astguiclient screen log…\n”;
`mv -f /var/log/astguiclient/screenlog.0 /var/log/astguiclient/screenlog.0.$now_date`;

From → Linux

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS

%d bloggers like this: