Re: [asterisk-users] Restart status
On Saturday 25 August 2007 21:03, Philipp Kempgen wrote: > Maybe something like this: > asterisk -rx 'restart gracefully' > > Then constantly monitor > asterisk -rx 'core show uptime seconds' > > And if that does not drop to let's say less than 30 seconds: > asterisk -rx 'stop now' > sleep 1 > killall -9 asterisk > asterisk > This sounds like a feature waiting to be coded. Something like "show restart status" Anyone have experience with setting up a bounty for a developer to make a change like this ? Ron ___ --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
Re: [asterisk-users] Restart status
Ron Joffe wrote: > The issue is that I am attempting to restart asterisk from external scripts > due to certain pbx conditions. > > I need to have a two step approach: > > 1. Issue a "restart gracefully" > 2. If x minutes go by and and all channels have not cleared then issue a > "restart now" > > Each of these items might not know of the other so it would be helpful for > item two to know that asterisk is in a "restart gracefully" mode. Maybe something like this: asterisk -rx 'restart gracefully' Then constantly monitor asterisk -rx 'core show uptime seconds' And if that does not drop to let's say less than 30 seconds: asterisk -rx 'stop now' sleep 1 killall -9 asterisk asterisk Regards, Philipp Kempgen -- amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de Let's use IT to solve problems and not to create new ones. Asterisk? -> http://www.das-asterisk-buch.de My pick of the month: rfc 2822 3.6.5 Geschäftsführer: Stefan Wintermeyer Handelsregister: Neuwied B 14998 ___ --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
Re: [asterisk-users] Restart status
On Saturday 25 August 2007 11:15, Steve Totaro wrote: > Probably not much help, but if you rarely issue commands such as this, > hit the up arrow a few times. Steve, The issue is that I am attempting to restart asterisk from external scripts due to certain pbx conditions. I need to have a two step approach: 1. Issue a "restart gracefully" 2. If x minutes go by and and all channels have not cleared then issue a "restart now" Each of these items might not know of the other so it would be helpful for item two to know that asterisk is in a "restart gracefully" mode. Ron ___ --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
Re: [asterisk-users] Restart status
Ron Joffe wrote: > If I issue a "restart gracefully" command, the system will wait until all > channels are idle before restarting. > > During the time the system is waiting for idle activity, is there a command > that can let me know it is in "graceful restart wait" mode ? > > Thanks, > > Ron > Good question. I have wondered that a couple of times and assumed that there was not, but maybe there is. Probably not much help, but if you rarely issue commands such as this, hit the up arrow a few times. Thanks, Steve ___ --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
[asterisk-users] Restart status
If I issue a "restart gracefully" command, the system will wait until all channels are idle before restarting. During the time the system is waiting for idle activity, is there a command that can let me know it is in "graceful restart wait" mode ? Thanks, Ron ___ --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