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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

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

Reply via email to