From owner-freebsd-questions@FreeBSD.ORG Tue May 17 15:42:37 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 5639516A4CE for ; Tue, 17 May 2005 15:42:37 +0000 (GMT) Received: from mail.filmkern.com (mail.filmkern.com [206.169.45.174]) by mx1.FreeBSD.org (Postfix) with ESMTP id C869843D8F for ; Tue, 17 May 2005 15:42:36 +0000 (GMT) (envelope-from darom@filmkern.com) Received: from localhost (localhost [127.0.0.1]) by mail.filmkern.com (Postfix) with ESMTP id EA2FC29392; Tue, 17 May 2005 08:42:28 -0700 (PDT) Received: from mail.filmkern.com ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04525-06-2; Tue, 17 May 2005 08:42:28 -0700 (PDT) Received: from mail.filmkern.com (localhost [127.0.0.1]) by mail.filmkern.com (Postfix) with ESMTP id BEFDC2938F; Tue, 17 May 2005 08:42:28 -0700 (PDT) Received: from 206.169.45.183 (SquirrelMail authenticated user darom@filmkern.com) by mail.filmkern.com with HTTP; Tue, 17 May 2005 08:42:28 -0700 (PDT) Message-ID: <27888.206.169.45.183.1116344548.squirrel@mail.filmkern.com> Date: Tue, 17 May 2005 08:42:28 -0700 (PDT) From: "Denis R." To: ic.gowtham@gmail.com User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at filmkern.com cc: freebsd-questions@freebsd.org Subject: Re: Daemon Process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2005 15:42:37 -0000 Here is a good example: http://cr.yp.to/daemontools/svc.html Download the source and examine it. >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. > >Thank you, >Gowtham