[Asterisk-Users] Graceful CLI/crontab reboot

Andrew Edmond edmond at candlepeople.com
Wed Oct 20 10:46:20 MST 2004


Marcelo,

Great idea to pull zaptel/etc out of modprobe memory too and restart
EVERTYHING.  Great idear.

Andrew

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Marcelo
Pacheco
Sent: Wednesday, October 20, 2004 10:32 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Graceful CLI/crontab reboot




Em Qua 20 Out 2004 15:14, Andrew Edmond escreveu:
> 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


#!/bin/bash
export PATH=/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/bin:/usr/bin
/usr/sbin/asterisk -r -x "stop when convenient"
rmmod wcusb
rmmod wcfxo
rmmod zaptel
modprobe wcusb
modprobe wcfxo
ztcfg -vvv
/usr/sbin/asterisk


I do exactly what you want. But I also restart 100% all of zaptel.
Needed for 
the USB FXS module.

I'm using this essentially in production in my business partner's home
office 
without problems for almost 2 months now.

Marcelo Pacheco
_______________________________________________
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




More information about the asterisk-users mailing list