Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Under Ubuntu you can suspend a process by

kill -STOP [process ID]

and resume by

kill -CONT [process ID]

But my question is, does this also work after a full system shutdown/reboot ? Will the process ID be stored on the machine (and not overwritten by a new process)?

Or are there any other alternatives available?

Many thanks in advance,

-- Stan

share|improve this question
    
No, it doesn't work after a reboot, the PIDs are not stored on the machine, they are re-used after a reboot. I don't think you can suspend/resume a single process. You could suspend/resume (hibernate) the whole machine, or you could use a Virtual Machine like VirtualBox, but that's certainly a lot more expensive. –  elmicha Mar 8 '12 at 17:53
    
Please consider posting your comment as the answer for the question. –  Ringtail Mar 9 '12 at 4:30
    
Please remember to accept/upvote the best answer(s) to your question when possible (tick/check mark on the left). This way, the question is marked as "answered" and future readers can refer to it knowing the solution works. Thank you...:) –  izx Aug 24 '12 at 21:45

1 Answer 1

does this also work after a full system shutdown/reboot?

  • No.

Will the process ID be stored on the machine (and not overwritten by a new process)?

  • No. PIDs do not persist across reboots.

Or are there any other alternatives available?

  • Hibernation, which preserves the entire system state.
share|improve this answer

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.