1826123 Members
4719 Online
109690 Solutions
New Discussion

kill command

 
Asad Malik_1
Occasional Advisor

kill command

Hello All
I have to do some testing on a running application by killing processes.
my question is that under which situations can I use
kill -26 pid (which is used to start a stopped process)to start a process again
if it was
1. terminated by using kill -15 pid
2. stoped by using kill -24 pid
3. terminally stopped kill -25 pid

does a stopped process behaves as it has been terminated but only can be
restarted?

help will be appreciated
Thanks
1 REPLY 1
Anthony Goonetilleke_1
Regular Advisor

Re: kill command

For some reasons I dont think you can use kill -15 as it actually terminates
the proccess although it can be trapped is issued the PID will disappear if it
is not trapped and hence there is no point trying to restart as you won't have
the PID running.

Here is a list that might help from kill (1m)

signum signame Name Description
______________________________________________________
0 SIGNULL Null Check access to pid
1 SIGHUP Hangup Terminate; can be trapped
2 SIGINT Interrupt Terminate; can be trapped
3 SIGQUIT Quit Terminate with core dump; can be trapped
9 SIGKILL Kill Forced termination; cannot be trapped
15 SIGTERM Terminate Terminate; can be trapped
24 SIGSTOP Stop Pause the process; cannot be trapped
25 SIGTSTP Terminal stop Pause the process; can be trapped
26 SIGCONT Continue Run a stopped process