[MinnowBoard] Close SSH shell and leave process running

selsinork at gmail.com selsinork at gmail.com
Thu Jan 30 10:44:43 UTC 2014


On 29/01/14 23:40, Klaus Siegesleitner wrote:
> Hi All!
> 
> I tried 3 ways to leave a process running when i exit a ssh shell:
> 
>  1. nohup <cmd> &; exit
>  2. <cmd> &; disown %1; exit
>  3. with screen command
> 
> Each time the process is terminated!


That's a systemd 'feature'. It uses cgroups to track all processes started by the parent, sshd in your case, and when the parent goes away, for whatever reason, it kills off anything left in the same cgroup.

There's been plenty of holy wars started over systemd and I won't repeat them here. Instead I'll just suggest that if systemd doesn't support your use case, then perhaps you can switch to a distro that doesn't use it. As the minnow is x86 you have the widest range of choices available.



More information about the elinux-MinnowBoard mailing list