Suspend process without killing it

killprocess

So I've got a persistent program running in the background. Killing it just causes it to restart with a different PID. I'd like to suspend it (put it to sleep without actually killing it). Does kill -9 do this? If not, how should this be done?

Best Answer

kill -STOP $PID
[...]
kill -CONT $PID

@jordanm adds: Also note that like SIGKILL (kill -9), SIGSTOP can not be ignored.

Related Question