Hi... Im problem is this, i have a asterisk server (FC8 - kernel 2.6.24) a the asterisk version is 1.4.18. If in the machine is all ok, i can stop start the asterisk service no prob, my problem is when in another server (in my case, debian etch 4) using the ssh the stop service is ok, but the start service dosend finalise. Like this: ssh etx9 'sudo /etc/init.d/asterisk stop' operacao at DB2:~$ ssh etx9 'sudo /etc/init.d/asterisk stop' Shutting down asterisk: [ OK ] stop ssh etx9 'sudo /etc/init.d/asterisk start' operacao at DB2:~$ ssh etx9 'sudo /etc/init.d/asterisk start' start ini Starting asterisk: [ OK ] decrease the verbosity level to zero: OK start fim and just stays there, like waiting for something. So if someone can help, please do i dont have any more ideias. Thanks Bruno Pereira -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080424/4e64a76f/attachment.htm
On Thu, Apr 24, 2008 at 05:01:53PM +0100, Bruno Pereira wrote:> Hi... > Im problem is this, i have a asterisk server (FC8 - kernel 2.6.24) a the > asterisk version is 1.4.18. > If in the machine is all ok, i can stop start the asterisk service no prob, > my problem is when in another server (in my case, debian etch 4) using the > ssh the stop service is ok, but the start service dosend finalise. > Like this: > ssh etx9 'sudo /etc/init.d/asterisk stop' > operacao at DB2:~$ ssh etx9 'sudo /etc/init.d/asterisk stop' > Shutting down asterisk: [ OK ] > stop > > ssh etx9 'sudo /etc/init.d/asterisk start' > operacao at DB2:~$ ssh etx9 'sudo /etc/init.d/asterisk start' > start ini > Starting asterisk: [ OK ] > decrease the verbosity level to zero: OK > start fim > > and just stays there, like waiting for something. > So if someone can help, please do i dont have any more ideias.For starters, trace the init.d script to see where it is hung: sh -x /etc/init.d/asterisk start (As root or from sudo) -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
On Thu, 24 Apr 2008, Bruno Pereira wrote:> ssh etx9 'sudo /etc/init.d/asterisk start' > operacao at DB2:~$ ssh etx9 'sudo /etc/init.d/asterisk start' > start ini > Starting asterisk: [ OK ] > decrease the verbosity level to zero: OK > start fim > > and just stays there, like waiting for something.Sudo recently (?) added a new parameter in /etc/sudoers that caused me a lot of grief. Comment out "Defaults requiretty" and see if it helps. Also, your custom /etc/init.d/asterisk script ("start fim?") may not be redirecting stdin/stdout/stderr correctly. Thanks in advance, ------------------------------------------------------------------------ Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000