[asterisk-users] Graceful Asterisk Shutdown
Jeng Yu
jengyu2007 at yahoo.co.uk
Mon Dec 10 09:36:56 CST 2007
Thanks, All! And thanks, Oquendo! I will experiment
with this suggestion. I was actually thinking in terms
of a situation where it would be done
non-interactively.
Jeng
--- "J. Oquendo" <sil at infiltrated.net> wrote:
> Jeng Yu wrote:
>
> > This would be the ultimate graceful shutdown;
> perfect
> > for routine system maintenance tasks on production
> > servers handling continuous traffic.
>
> if [ `asterisk -rx "show channels verbose"|awk
> '/active calls/{print
> $1}'` -eq 0 ]
>
> then asterisk -rx "stop now"
>
> fi
>
>
>
> --
> ====================================================
> J. Oquendo
>
> SGFA #579 (FW+VPN v4.1)
> SGFE #574 (FW+VPN v4.1)
>
> "I hear much of people's calling out to punish the
> guilty, but very few are concerned to clear the
> innocent." Daniel Defoe
>
>
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF684C42E
>
> > _______________________________________________
> --Bandwidth and Colocation Provided by
> http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>
http://lists.digium.com/mailman/listinfo/asterisk-users
__________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
More information about the asterisk-users
mailing list