[asterisk-users] 'restart when convenient'

Matthew Jordan mjordan at digium.com
Wed May 28 13:08:35 CDT 2014


On Wed, May 28, 2014 at 12:47 PM, Doug Lytle <support at drdos.info> wrote:
>>> Perhaps i should join the -dev list to find out what 'convenient'
>>> actually means for the process...
>
> The dev list is for discussions of coding Asterisk, this would be considered a user's question.  Many of the devs are subscribed to this list as well.
>

The various 'stop/restart' flavours and what they mean:

* now - tell all CDRs to go submit themselves. Tell all channels to
hang up, and wait up to 15 seconds for all channels to go away. Don't
allow new channels to be made. After 15 seconds, shut down anyway.
Clean up of resources in modules is "best effort" - don't wait for
anything to get written or otherwise dispose of itself.
* gracefully - tell all CDRs to go submit themselves. Wait until all
channels have hung up, but don't hang them up. Don't allow new
channels to be made. Once all channels have hung up, ask all of the
modules to clean up after themselves - including waiting for CDRs to
get written.
* convenient - wait until all channels have hung up. If no channels
are made, keep waiting. Once all channels have hung up, and no new
channels are made, sneak in and ask all of the modules shut down and
to clean up after themselves - including waiting for all CDRs to get
written.

Note that while one shutdown command is executing, another cannot be
started. Thus, if you issue a 'core stop gracefully' and decide later
to escalate it to 'core stop now', by default, Asterisk will refuse
the 'core stop now' command. You can, however, stop the 'core stop
gracefully' by issuing 'core abort shutdown', which will cause
Asterisk to stop the existing shutdown attempt and return to normal
processing. You can then issue another shutdown command at your
leisure.

-- 
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org



More information about the asterisk-users mailing list