[Tutor] how to run a process forever

Tiago Saboga tiagosaboga at gmail.com
Thu Dec 11 00:56:13 CET 2008


On Wed, Dec 10, 2008 at 11:29:10AM -0800, Steve Willoughby wrote:
> On Wed, Dec 10, 2008 at 01:15:18PM -0600, shawn bright wrote:
> > i am running this on a linux computer. How would i check that it is
> > running? (from cron part)
> 
> Typically you have your program write its PID to a file.  The cron
> script can check that file and see if that process is still alive before
> deciding to start another.

If you are in a debian-based system, see start-stop-daemon (possibly
available in other distros too).

Tiago Saboga.


More information about the Tutor mailing list