[asterisk-users] SSH connection hangs on logout?

Tzafrir Cohen tzafrir.cohen at xorcom.com
Wed Aug 23 23:31:41 MST 2006


On Wed, Aug 23, 2006 at 11:03:23PM -0700, Steve Edwards wrote:
> On Thu, 24 Aug 2006, Jeremy McNamara wrote:
> 
> >Rushowr wrote:
> >>Hey all, I have an interesting issue that just recently started when I
> >>grabbed a copy of the trunk about a week ago and compiled it. Ever since
> >>that compile, if I start Asterisk (disconnected terminal, using
> >>safe_asterisk to launch) and then continue on about my work with it, when 
> >>I
> >>disconnect my SSH terminal (using latest version of PuTTY) the session no
> >>longer closes it just hangs. I've even changed the Putty setting to close
> >>the window even on unclean exit but it still hangs the connection... I had
> >>something similar once with Zabbix a while back, but never Asterisk.
> >>
> >>Anyone else experience this?
> >
> >Start asterisk using  safe_asterisk or via asterisk -f
> >
> >I prefer the safe_asterisk shell script, since if asterisk seg faults, 
> >there is a good chance asterisk will get automatically restarted.
> >
> >Jeremy McNamara
> >_______________________________________________
> >--Bandwidth and Colocation provided by Easynews.com --
> >
> >asterisk-users mailing list
> >To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> You may need to redirect stdin, stdout, stderr like:
> 
>                         run_asterisk\
>                                 0</dev/null\
>                                 1>/dev/null\
>                                 2>/dev/null\
>                                         &
> 

In other words: 

A plain 'asterisk' (without '-c' and such) that daemonizes and does
exactly that for you, among others.

Asterisk is a daemon, rather than an interactive program. Thus its
handling for SIGHUP is to re-read configuration rather than detach from
the terminal.

-- 
Tzafrir Cohen         sip:tzafrir at local.xorcom.com
icq#16849755          iax:tzafrir at local.xorcom.com
+972-50-7952406          jabber:tzafrir at jabber.org
tzafrir.cohen at xorcom.com     http://www.xorcom.com



More information about the asterisk-users mailing list