[Asterisk-Users] Graceful CLI/crontab reboot

Michael Welter mike at introspect.com
Wed Oct 20 10:27:35 MST 2004


Andrew Edmond wrote:
> 
> Asterisk Community --
>  
> I'm looking for a way to gracefully shutdown asterisk at least once a 
> day and bring it back online.  I'm using Gentoo Linux and 
> using safe_asterisk from /etc/init.d/asterisk.
>  
> Anybody have a handy CLI/crontab script that accomplishes this?
>  
> Andrew
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users

Here is my crontab command:

0 4 * * * /usr/sbin/asterisk -rx 'restart gracefully'

However, there have been several occasions where the system has been 
"stuck" when the employees arrive for work in the morning.  'show 
channels' indicates a "stuck" channel on the Adtran 750, and Asterisk is 
unable to complete the shutdown.  I need to upgrade this system to 
Asterisk v1.0 before I persue this problem.

-- 
Michael Welter
Introspect Telephony Corp.
Denver, Colorado US
+1.303.674.2575
mike at introspect.com
www.introspect.com



More information about the asterisk-users mailing list