Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] help...i cant do more...


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
tzafrir.cohen at xorco...
Guest





PostPosted: Thu Apr 24, 2008 12:40 pm    Post subject: [asterisk-users] help...i cant do more... Reply with quote

On Thu, Apr 24, 2008 at 05:01:53PM +0100, Bruno Pereira wrote:
Quote:
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
Back to top
asterisk.org at sedwar...
Guest





PostPosted: Thu Apr 24, 2008 1:23 pm    Post subject: [asterisk-users] help...i cant do more... Reply with quote

On Thu, 24 Apr 2008, Bruno Pereira wrote:

Quote:
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
Back to top
tzafrir.cohen at xorco...
Guest





PostPosted: Thu Apr 24, 2008 1:57 pm    Post subject: [asterisk-users] help...i cant do more... Reply with quote

On Thu, Apr 24, 2008 at 11:23:21AM -0700, Steve Edwards wrote:
Quote:
On Thu, 24 Apr 2008, Bruno Pereira wrote:

Quote:
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.

Or Asterisk may not be closing file descriptors properly?

I have such an issue with some scripts getting hanged on installation of
the package asterisk on Debian until I restart Asterisk.

--
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
Back to top
bruno.motorrato at gma...
Guest





PostPosted: Fri Apr 25, 2008 5:38 am    Post subject: [asterisk-users] help...i cant do more... Reply with quote

Thanks for the answers.
I need to say that this command is executed from another machine, with the
command ssh....
because in ocalhost is all ok, with sudo or with root.

I will try that trace to see if it helps me, but the bg probem is start the
service from another machine with ssh .

Best regards,
Bruno Pereira
On 4/24/08, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
Quote:

On Thu, Apr 24, 2008 at 11:23:21AM -0700, Steve Edwards wrote:
Quote:
On Thu, 24 Apr 2008, Bruno Pereira wrote:

Quote:
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.

Or Asterisk may not be closing file descriptors properly?

I have such an issue with some scripts getting hanged on installation of
the package asterisk on Debian until I restart Asterisk.

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com<jabber%3Atzafrir.cohen at xorcom.com>
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir

_______________________________________________
-- 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080425/a22da01c/attachment.htm
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services