0

I have an Intel Edison with Yocto Linux and standard configurations. It had nohup pre-installed and I managed to install both screen and tmux (by compiling them from sources). Now, I would like to run some process and keep it working when I disconnect. I tried the following:

  • Running a program with screen, detaching, logging out, logging in, running screen -r
  • Running a program with tmux, detaching, logging out, logging in, running tmux attach
  • Running that program with nohup python myscript.py &

When using screen and tmux, I succesfully manage to resume my sessions if I don't disconnect. However, when I disconnect both screen and tmux say that there is no session / screen to be resumed. When running with nohup, logging out and back in causes my process to be killed (it doesn't show up when running top).

What could be going on? I really an not understanding this.

migrated from serverfault.com Dec 1 '14 at 3:39

This question came from our site for system and network administrators.

0

mhahn said there was a bug in Yocto sshd killing all current cgroup processes when leaving ssh which has an easy fix (just didn't make it to the Edison build yet): poky - Poky Build Tool and Metadata i.e. in short:

echo "KillMode=process" >> /lib/systemd/system/sshd@.service

https://communities.intel.com/thread/57402?start=15&tstart=0

  • 2
    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference.  Link-only answers can become invalid if the linked page changes. – G-Man Says 'Reinstate Monica' Apr 15 '15 at 1:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy