Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] ssh tunnel in background requires nohup?



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


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links