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:[EMAIL PROTECTED] icq#16849755 iax:[EMAIL PROTECTED] +972-50-7952406 jabber:[EMAIL PROTECTED] [EMAIL PROTECTED] 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