From owner-freebsd-questions@FreeBSD.ORG Tue Oct 26 15:53:26 2004 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 8CE4D16A4CE for ; Tue, 26 Oct 2004 15:53:26 +0000 (GMT) Received: from core0.adn-services.com (core0.adn-services.com [82.112.100.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DC5643D2F for ; Tue, 26 Oct 2004 15:53:26 +0000 (GMT) (envelope-from gadnet@aqueos.com) Received: from [10.27.27.27] (lns-th2-4f-81-56-179-201.adsl.proxad.net [81.56.179.201]) (authenticated bits=0)i9QFrOUb015341; Tue, 26 Oct 2004 17:53:24 +0200 (CEST) Message-ID: <417E72F4.6090702@aqueos.com> Date: Tue, 26 Oct 2004 17:53:24 +0200 From: ADNET Ghislain Organization: AQUEOS User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Thunderbird/0.7.3 Mnenhy/0.6.0.104 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamd / ClamAV version 0.75.1, clamav-milter version 0.75c on core0.adn-services.com X-Virus-Status: Clean Subject: init - inittab , how to monitor process like on linux ? 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, 26 Oct 2004 15:53:26 -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 -------------------------------------------------------- you are right this is a bsd newby question ;) here we go :) ! i pray the BSD god for an answer, yet humans are probably the best source of information out there so if any mere mortal can help me with my init question it will save some goats from the sacrificial ritual... Best regards, Ghislain