From owner-freebsd-newbies@FreeBSD.ORG Tue Oct 26 03:26:12 2004 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 498FD16A4CE for ; Tue, 26 Oct 2004 03:26:12 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 015BD43D39 for ; Tue, 26 Oct 2004 03:26:12 +0000 (GMT) (envelope-from beebum@gmail.com) Received: by wproxy.gmail.com with SMTP id 68so119099wri for ; Mon, 25 Oct 2004 20:26:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=atpzpSsQ8kZ0qMjin3fgDtqAWjd88AHWcIhsZ5++O3QZZz4jn444D+A4jxAzEnCcMQgWCZhvKume3E7Ny8XJ6TQ3WN5AtC/yOE2sx2e5x5x5xb3We+0TMdETxfBNMBra2LdxMaE4eBMm4bW/s+k7eWDCF+rehRqPZtCpooc4gjQ= Received: by 10.38.150.44 with SMTP id x44mr206564rnd; Mon, 25 Oct 2004 20:26:11 -0700 (PDT) Received: by 10.38.65.76 with HTTP; Mon, 25 Oct 2004 20:26:11 -0700 (PDT) Message-ID: Date: Mon, 25 Oct 2004 22:26:11 -0500 From: terry tyson To: ADNET Ghislain In-Reply-To: <417DBA39.1060301@aqueos.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <417DBA39.1060301@aqueos.com> cc: freebsd-newbies@freebsd.org Subject: Re: init - inittab , how to monitor process like on linux ? X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: terry tyson List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 03:26:12 -0000 On Tue, 26 Oct 2004 04:45:13 +0200, ADNET Ghislain wrote: > Hi, > > The init process can watch daemon and respawn died ones on linux with > simple configuration. I tried to reproduce this in my FreeBSD server. I > know this can be done also as the man page says: > > Init can also be used to keep arbitrary daemons running, automatically > restarting them if they die. In this case, the first field in the > ttys(5) file must not reference the path to a configured device > node and > will be passed to the daemon as the final argument on its command line. > This is similar to the facility offered in the AT&T System V UNIX > /etc/inittab. > > but no matter how i tweak the ttys file i cannot make it to work. > > Does any FreeeBSD guru can help me make the step from linux complete as > i cannot find help about this anywhere (the freeBSD admin book do not > speak of it and google is silent about freeBSD specific ttys "inittab > like" settings). > > A simple exemple will do the trick, basicaly i need this to keep spamd, > clamd running (with better and safer way than using a while 1 loop on > the shell). > > Best regards, > Ghislain. Best to post this to freebsd-questions. -- Terry