Joseph
2012-Nov-24 05:54 UTC
[asterisk-users] * Waiting for asterisk to shutdown .............
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? -- Joseph
Michael L. Young
2012-Nov-24 22:43 UTC
[asterisk-users] * Waiting for asterisk to shutdown .............
----- Original Message -----> From: "Joseph" <syscon780 at gmail.com> > To: asterisk-users at lists.digium.com > Sent: Saturday, November 24, 2012 12:54:12 AM > Subject: [asterisk-users] * Waiting for asterisk to shutdown ............. > > 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?What version of Asterisk are you running? Michael (elguero)
Mikhail Lischuk
2012-Nov-24 23:30 UTC
[asterisk-users] * Waiting for asterisk to shutdown .............
Joseph ????? 24.11.2012 07:54:> I'm running asterisk on asmall box, Intel-R-_Atom-TM-_CPU_330_ at _1.60GHz> and when I try torestart the asterisk it fails.> > /etc/init.d/asterisk restart > *Caching service dependencies ... [ ok ]> * Killing wrapper script ... [ok ]> * Stopping asterisk PBX gracefully ... > > * Waiting forasterisk 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 notshut 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>