[asterisk-users] SSH connection hangs on logout?

Steve Edwards asterisk.org at sedwards.com
Wed Aug 23 23:03:23 MST 2006


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\
                                         &

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards      sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                             Fax: +1-760-731-3000



More information about the asterisk-users mailing list