[asterisk-users] * Waiting for asterisk to shutdown .............

Mikhail Lischuk mlischuk at itx.com.ua
Sat Nov 24 17:30:59 CST 2012


 

Joseph писал 24.11.2012 07:54: 

> I'm running asterisk on a
small box, Intel-R-_Atom-TM-_CPU_330_ at _1.60GHz
> and when I try to
restart the asterisk it fails.
> 
> /etc/init.d/asterisk restart
> *
Caching service dependencies ... [ ok ]
> * Killing wrapper script ... [
ok ]
> * Stopping asterisk PBX gracefully ...
> 
> * Waiting for
asterisk to shutdown
.............................................................
> *
Failed.
> 
> When I run /etc/init.d/asterisk status
> I get: "* status:
started"
> 
> At this point I have to kill the process ID
> "zap" it
(/etc/init.d/asterisk zap)
> and restart it.
> 
> Why asteriks can not
shut down properly?
> How can I monitor this process and restart it?

I
don't know what's in your startup script, for I never used one, but it
says about graceful shutdown. 

It might be executing "core stop
gracefully" or maybe "core stop when convenient" 

In the first case,
Asterisk will stop receiving new commands and calls, will wait for all
current calls to disconnect and then shutdown. 

In the second case,
Asterisk will continue receiving new calls (not sure about commands),
and as soon as there are 0 active calls, it will shutdown. 

As you can
see, in the second scenario you'll rarely get to the shutdown on active
server. 

Not sure why do you kill the zap process. Does it hang up? For
when you kill it and drop all Zap calls, asterisk may already rest in
piece, if my above guess is right. 

-- 
With Best Regards
Mikhail
Lischuk

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121125/2cff1314/attachment.htm>


More information about the asterisk-users mailing list