Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
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
add comment

1 Answer 1

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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