mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2010-04-15, 20:16   #1
odin
 
Apr 2010

33 Posts
Default How to gracefully stop mprime under linux

Hello All,

If I have mprime launched by an init script under Ubuntu linux at start up what is the best way to stop the program gracefully? I don't just want to terminate the processes but to have it stop all workers and do a file dump like it normally does and then quit.


Is it:

kill -HUP $PID

or

kill -KILL $PID


What would this do:

killall mprime

Would it stop mprime gracefully or would it do a hard terminate?

Thanks.

Last fiddled with by odin on 2010-04-15 at 20:16
odin is offline   Reply With Quote
Old 2010-04-15, 20:45   #2
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3·2,083 Posts
Default

Quote:
Originally Posted by odin View Post
Hello All,

If I have mprime launched by an init script under Ubuntu linux at start up what is the best way to stop the program gracefully? I don't just want to terminate the processes but to have it stop all workers and do a file dump like it normally does and then quit.


Is it:

kill -HUP $PID

or

kill -KILL $PID


What would this do:

killall mprime

Would it stop mprime gracefully or would it do a hard terminate?

Thanks.
kill -HUP $PID, kill -INT $PID, kill -TERM $PID, and Ctrl-C all terminate the program gracefully. killall/pkill gives a SIGINT, so it would do so as well.

Sending a SIGKILL, on the other hand, would hard terminate the program and not let it save its progress since the last automatic checkpoint.
mdettweiler is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
mprime: how to stop exactly one worker (out of 2) axn Software 7 2009-03-28 10:56
mprime and linux Echoblade Information & Answers 3 2007-06-24 22:28
How to Compile mprime Under Linux Blaise Pascal Software 12 2005-01-13 14:40
mprime RPM package for linux gbvalor Software 15 2004-01-04 11:51
MPrime on Linux optim Software 13 2003-12-06 04:27

All times are UTC. The time now is 23:00.

Sat Apr 10 23:00:47 UTC 2021 up 2 days, 17:41, 1 user, load averages: 1.47, 1.92, 1.87

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.