Ubuntu Server 11.10

When a normal (non-root) user starts a process with nohup, when the user disconnects from the terminal the process (java) stops responding. When the user connects again, the process starts responding again.

Is there any background process permissions that I'm not aware of that precludes the process from running in background?
What could be causing this behaviour?

  • Try running it with tmux or screen, and then detaching the tmux or screen session. – Rob Oct 27 '11 at 18:08
  • @Rob, thanks but it still doesn't work... and it is not quite what I need. What I ended up doing is running such processes as root ... which is far from ideal. When I find the cause I'll post an answer. – pakman Dec 5 '11 at 21:10

I usually redirect stdout and stderr as well as using nohup. I'm not sure if it is necessary but it works for me.

If the program ever reads from stdin it will wait.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.