I am facing a rather strange situation:
- ssh to a beaglebone (details : uname -a = "Linux beaglebone 3.2.34 #1 Wed Nov 21 14:17:11 CET 2012 armv7l GNU/Linux", ssh server : Dropbear sshd v2012.55)
- launch any kind of process through screen, or nohup or /etc/init.d/
- logout
- re-ssh into it
- observe that the process is no longer there..
When using a second ssh connection, I can observe that the launched process is killed at the disconnection.
I've seen posts like What exactly determines if a backgrounded job is killed when the shell is exited, or killed?, but still can't understand this behaviour, which is clearly not the way screen
and other disowned processes are supposed to work.
$ shopt huponexit
huponexit off
I had to resort to using cron commands to persist the process
Why are detached processes killed at disconnection ?
Do you see other things to look for ?
cmd; ctrl+z; bg; disown
,jobs
gives an empty list, but it still exhibits the same behaviour..