[asterisk-users] graceful restart

Paul Belanger paul.belanger at polybeacon.com
Sun Aug 19 11:14:04 CDT 2012


On 12-08-18 06:39 PM, Jan Blom wrote:
> Hello,
>
> Is there a way to detect, via cli or any other way, that Asterisk is in "graceful shutdown" mode, not accepting any new calls? Or to put the question a different way, how can I know that Asterisk has restarted again after the command "core restart graceful" in an automated way?
>
Monitor the events on the AMI, you should see the following:

Event: Shutdown
Privilege: system,all
SequenceNumber: 0
File: asterisk.c
Line: 1773
Func: really_quit
Shutdown: Cleanly
Restart: True

Then you can build out your monitoring tools from it.

-- 
Paul Belanger | PolyBeacon, Inc.
Jabber: paul.belanger at polybeacon.com | IRC: pabelanger (Freenode)
Github: https://github.com/pabelanger | Twitter: 
https://twitter.com/pabelanger



More information about the asterisk-users mailing list