[asterisk-users] SSH connection hangs on logout?
Rushowr
rushowr at phreaker.net
Thu Aug 24 08:09:34 MST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
> Tzafrir Cohen
> Sent: Thursday, August 24, 2006 2:32 AM
> To: asterisk-users at lists.digium.com
> Subject: Re: [asterisk-users] SSH connection hangs on logout?
>
> 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
> _______________________________________________
> --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
****Shoots out own flames before emailing****
Gents, asstated in my email, I am using safe_asterisk. Additionally, even
when I started asterisk by hand, it was always forked off of my tty.
However, even if I DID have it connected to my tty, I'd have to issue "stop
now" before getting to the command prompt and being able to issue "logout"
to bash.
Try this sometime gents, you'll see what I mean...issue a ! From the
*CLI...then type logout...You'll be told that you're not in a login shell
and to use exit.....
Wow......
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: ENCRYPTED WITH GPG
iD8DBQFE7cEuwWoA8HY7JXYRAqtoAJwNX8/L7OFuXvTPobOvJ8cH0Iei9QCaApf0
S4BH1uc4ZxWxei0gRy+qKy0=
=6PsA
-----END PGP SIGNATURE-----
More information about the asterisk-users
mailing list