From owner-freebsd-questions@FreeBSD.ORG Tue May 17 09:28:00 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EAAE16A4CE for ; Tue, 17 May 2005 09:28:00 +0000 (GMT) Received: from smtp-out2.blueyonder.co.uk (smtp-out2.blueyonder.co.uk [195.188.213.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 539E843DD3 for ; Tue, 17 May 2005 09:27:59 +0000 (GMT) (envelope-from tim@tjstephens.com) Received: from yuri.tjstephens.com ([82.41.217.175]) by smtp-out2.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Tue, 17 May 2005 10:28:37 +0100 Received: by yuri.tjstephens.com (Postfix, from userid 1002) id B08FF435; Tue, 17 May 2005 10:27:56 +0100 (BST) Date: Tue, 17 May 2005 10:27:56 +0100 From: Tim Stephens To: Gowtham Message-ID: <20050517092756.GA7407@tjstephens.com> References: <2ab1ba0c05051608414c0884c7@mail.gmail.com> <1639417618.20050516184834@ramb.com.ua> <20050516185231.GC702@orion.daedalusnetworks.priv> <63c3899e050516125654d2d497@mail.gmail.com> <2ab1ba0c050517012755c8d9c5@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2ab1ba0c050517012755c8d9c5@mail.gmail.com> User-Agent: Mutt/1.4.1i X-OriginalArrivalTime: 17 May 2005 09:28:37.0623 (UTC) FILETIME=[CE00A070:01C55AC2] cc: questions@freebsd.org Subject: Re: Daemon Process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mail@tjstephens.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2005 09:28:00 -0000 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