Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 May 2005 10:27:56 +0100
From:      Tim Stephens <mail@tjstephens.com>
To:        Gowtham <ic.gowtham@gmail.com>
Cc:        questions@freebsd.org
Subject:   Re: Daemon Process
Message-ID:  <20050517092756.GA7407@tjstephens.com>
In-Reply-To: <2ab1ba0c050517012755c8d9c5@mail.gmail.com>
References:  <2ab1ba0c05051608414c0884c7@mail.gmail.com> <1639417618.20050516184834@ramb.com.ua> <20050516185231.GC702@orion.daedalusnetworks.priv> <63c3899e050516125654d2d497@mail.gmail.com> <2ab1ba0c050517012755c8d9c5@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 17, 2005 at 01:57:28PM +0530, Gowtham wrote:
> Hi All,
> Thank you very much for the feedback. Now, suppose I want to write a daemon 
> for Unix in C whose job is to monitor other daemons and restart dead 
> daemons. The daemon may take the list of such daemons to monitor from a 
> file. I want to know how can this be programmatically achieved.

Might this be the thing that you're looking for? 

http://developer.apple.com/documentation/Darwin/Reference/ManPages/man8/launchd.8.html

Slashdot discussion here:
http://apple.slashdot.org/article.pl?sid=05/05/01/1858238&from=rss

My understanding is that it will allow starting and watching of other daemons and processes, in addition to a few other things.  I expect that it won't be too hard to port (assuming that no-one else has already), and Apple have released the source.
Tim



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050517092756.GA7407>