Linux command to stop a process

I had this question after viewing Unix / Linux grid computing.
taazAsked:
Who is Participating?
 
Gerwin Jansen, EE MVETopic Advisor Commented:
To do that you can try SIGSTOP and SIGCONT signals:

SIGCONT - To make processes continue executing after being paused by the SIGTSTP or SIGSTOP signal, send the SIGCONT signal to the paused process. This is the CONTinue SIGnal. This signal is beneficial to Unix job control (executing background tasks).

So:

kill -SIGSTOP <process ID>

and:

kill - SIGCONT <process ID>
0
 
Gerwin Jansen, EE MVETopic Advisor Commented:
What is the question?

To stop a process, you use the kill command. Give the process ID as parameter.
0
 
Alexander Eßer [Alex140181]Software DeveloperCommented:
Yes, use kill (or kill -9) aka SIGTERM or SIGKILL

Just to add:

https://major.io/2010/03/18/sigterm-vs-sigkill/
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
taazAuthor Commented:
So we can not stop the process and then restart ?
The only option we have is to kill the process?

How we can start the same process if we kill it?
0
 
taazAuthor Commented:
The thing is I want to temporary stop the process and then restart
0
 
Gerwin Jansen, EE MVETopic Advisor Commented:
What process is this? You want to pause a process, not stop a process right?
0
 
taazAuthor Commented:
Right
To pause and then start
0
 
taazAuthor Commented:
Thank you!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.