![]() |
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. |
[quote=odin;211956]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.[/quote] 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. |
All times are UTC. The time now is 16:02. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.