Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-10-2009, 08:28 AM   #1
LQ Newbie
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
Question Continuing a process after shutdown ?

Hi y'all,

I know that it is possible to interrupt and continue processes in Linux, send them to the background and foreground. My question is regarding the following situation. I want to run a process (actually several, but i don't mind to do it one by one ) that is extremely long (it usually takes a month, or more). As you can imagine I can't have my computer on for a month without restarting. Does anyone know a way to do this ? I was thinking that the interrupt-continue capability of linux should allow me to do this... however I'm not sure I can continue a process after shutdown-reboot.

I know that one alternative could be to use checkpoints in my code (which is mostly R and Java) to achieve this, however, I would rather use an interrupt-continue framework.

Thanks in advance for your ideas or solutions !!!!

Old 08-10-2009, 08:37 AM   #2
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
I think you're gonna need checkpoints. The reason SIGSTOP and SIGCONT work is that the process's state in memory is preserved; it simply stops executing until told to continue. Obviously, that is not going to work if you power-cycle your machine (unless you're willing to trust a month's work to hibernate always working correctly). It doesn't seem likely to me that there's a library somewhere that allows you to 'hibernate' a single process, since that opens one of the largest cans of worms imaginable. If your program is writing to some file, is frozen and written to disk, and when it's restored, the file is gone, you are going to need some hardcore error-handling code, and that's probably on the low end of the bad that could produce.

Honestly, though, it shouldn't be much trouble to have a Linux system up for a month - I'll assume there's some external factor that makes that impossible.


management, process

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Placing a backup command in the shutdown process rob07mxa General 3 12-14-2008 10:46 AM
Fedora 7 Hangs while shutdown/restart/logout process myadavsatish Fedora 15 10-23-2007 10:06 AM
Fedora 7 Hangs while shutdown/restart/logout process myadavsatish Linux - Desktop 1 10-11-2007 04:29 PM
How to remotely shutdown a process darksoul04 Linux - Networking 6 09-11-2005 10:56 PM
shutdown process hanging southpawsc Linux - Newbie 1 09-24-2003 02:08 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration