[TriLUG] Suspending a running process?

Jeremy Portzer jeremyp at pobox.com
Fri Dec 13 17:40:20 EST 2002


On Fri, 2002-12-13 at 17:01, Paul D. Boyle wrote:
> 
> Jeremy wrote:
> > Processes that are currently active in a terminal can be suspended with
> > ^Z and then managed with the job-control commands like fg,bg, and jobs. 
> > However, what if I want to suspend a process that's not connected to a
> > shell -- like a background daemon?  Is there a signal that can do 
> > that?  How would I then wake it up?
> 
> Look in section 7 of the man pages for the signals ('man 7 signal' on
> your command line).
> 
> I haven't tried this myself (famous last words), but SIGSTOP will stop
> the process while SIGCONT willcontinue the process.  the kill(1) command
> will send the signal to the process by specifying it's PID.
> 
> kill -STOP <pid>
> kill -CONT <pid>

Thanks, that seems to work.  Didn't know about that man page... I did
know about "kill -l" to list available signals but was having trouble
guessing their function from the four-letter abbreviations. :-)

--Jeremy




More information about the TriLUG mailing list