[asterisk-users] Graceful Asterisk Shutdown
J. Oquendo
sil at infiltrated.net
Mon Dec 10 07:11:08 CST 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5533 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20071210/73f61903/attachment.bin
More information about the asterisk-users
mailing list