Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] ssh tunnel in background requires nohup?
- Date: Fri, 25 May 2007 17:05:26 +0900
- From: "Josh Glover" <jmglov@example.com>
- Subject: Re: [tlug] ssh tunnel in background requires nohup?
- References: <20070525050045.GG58681@samsara.bebear.net> <46567690.4030205@samsara.bebear.net> <20070525055135.GH58681@samsara.bebear.net>
On 25/05/07, Al Hoang <hoanga@example.com> wrote:
This does not answer my questions why. And I find screen a poor answer when considering this is going to be run like a daemon. nohup is a better option which I am already using. The tunnel I'm talking about IS being setup in an init script that I wrote.
Look at the source code for nohup or the man page for setsid(2). Therein lies the answer.
The short story is that simply backgrounding a process is not enough; you must also detach from the session created by your terminal emulator or, in this case, ssh, when you login to the machine.
-Josh
- References:
- [tlug] ssh tunnel in background requires nohup?
- From: Al Hoang
- Re: [tlug] ssh tunnel in background requires nohup?
- From: emiddleton@example.com
- Re: [tlug] ssh tunnel in background requires nohup?
- From: Al Hoang
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] server installation best practices/ worksheet
- Next by Date: Re: [tlug] server installation best practices/ worksheet
- Previous by thread: Re: [tlug] ssh tunnel in background requires nohup?
- Next by thread: Re: [tlug] ssh tunnel in background requires nohup? - take two
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links