[CentOS] CentOS 5.5 Java Process Death

Fri Feb 18 13:18:18 UTC 2011
m.roth at 5-cent.us <m.roth at 5-cent.us>

Martin Hewitt wrote:
> It's strange how one can wake up and suddenly notice a pattern...
>
> Looking through the straces, and the disconnect timestamps of the SSH
> sessions, it seems that the processes are dying as soon as, or shortly
> after the SSH session is closed.
>
> My command is something along the lines of:
>
> java -cp /path/to/shared/libs/*:/path/to/class/directory/
> path.to.MyApp > out.log 2>&1 &
>
> Does anyone have an idea as to why this process is closing when the
> SSH window that started it closes?
<snip>
Just for the sheer halibut*, try nohup <java cmd>

It's been something like 10 years or more since I had to do that, but....

         mark

* I know, it's fishy....