From owner-freebsd-questions@FreeBSD.ORG Sun Dec 18 04:14:14 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 33A4316A422 for ; Sun, 18 Dec 2005 04:14:14 +0000 (GMT) (envelope-from notebook@tdf.com.br) Received: from ns1.tdf.com.br (ns1.tdf.com.br [200.223.219.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B99543D5C for ; Sun, 18 Dec 2005 04:14:12 +0000 (GMT) (envelope-from notebook@tdf.com.br) Received: from localhost (unknown [127.0.0.1]) by injector.tdf.com.br (Postfix) with ESMTP id B456211D48C for ; Sun, 18 Dec 2005 01:14:37 -0300 (BRT) Received: by ns1.tdf.com.br (Postfix, from userid 65534) id 1DA1211D42C; Sun, 18 Dec 2005 01:14:35 -0300 (BRT) X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.tdf.com.br X-Spam-Level: X-Spam-Status: No, score=-1.4 required=6.0 tests=ALL_TRUSTED autolearn=unavailable version=3.1.0 Received: from [172.22.0.98] (220011.tdf.com.br [200.223.220.11]) by ns1.tdf.com.br (Postfix) with ESMTP id E99C511D42C for ; Sun, 18 Dec 2005 01:14:34 -0300 (BRT) Message-ID: <43A4E20F.2050207@tdf.com.br> Date: Sun, 18 Dec 2005 01:14:07 -0300 From: Gustavo Parrini User-Agent: Thunderbird 1.5 (Windows/20051025) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: AntiVirus - TDF Provider Subject: How to make init(8) run a daemon to me?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2005 04:14:14 -0000 Hi All, I'm having a pretty hard time trying to figure out how can I get init(8) to run a daemon and respawn it if it crashes. By the time I was a Linux user, it was done by adding a line in /etc/inittab and it was all... I know that it must be done in /etc/ttys but I couldn't find any syntax example after searching the FreeBSD manpages, maillists, Handbook and Google. "man init" gives me this: ... The *init* utility 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 com- mand line. This is similar to the facility offered in the AT&T System V UNIX //etc/inittab/. ... Sounded a little cryptic to me... sorry... Can anyone help me? If so, An example line would be fine. Thanx !! =) Gustavo