Question about using pid

Joseph C. Lininger jbahm at pcdesk.net
Mon Oct 20 20:05:22 EDT 2003


I'd check out the daemontools package.
http://cr.yp.to/ddaemontools.html

This tool has features to do what you want, plus a hole host of other stuff.
An alternative would be to use a script to monitor for changes in process
status, but this would be clumsy at best.
--
Joseph C. Lininger
jbahm at pcdesk.net
----- Original Message ----- 
From: "Janina Sajka" <janina at rednote.net>
To: <ma-linux at tux.org>; <speakup at braille.uwo.ca>
Sent: Monday, October 20, 2003 11:13 AM
Subject: Question about using pid


> I have a command that starts a process. Should that process die whilst
> I'm not at my computer, I want a script to restart it.
>
> How do I do this? What doc might I read that would provide examples?
>
> I presume I should launch the process so that it's pid is written to a
> file, and then I can just test for the running pid?
>
> But, I don't know how to go forward with this, so would appreciate all
> advice and direction.
>
>
> -- 
>
> Janina Sajka
> Email: janina at rednote.net
> Phone: (202) 408-8175
>
> Director, Technology Research and Development
> American Foundation for the Blind (AFB)
> http://www.afb.org
>
> Chair, Accessibility Work Group
> Free Standards Group
> http://accessibility.freestandards.org
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>





More information about the Speakup mailing list