From owner-freebsd-questions Tue Sep 24 7:34: 9 2002 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 9047237B401 for ; Tue, 24 Sep 2002 07:34:08 -0700 (PDT) Received: from bouba.alxhost.com (bouba.alxhost.com [66.96.220.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31BD143E6E for ; Tue, 24 Sep 2002 07:34:08 -0700 (PDT) (envelope-from jimmy.lantz@lusidor.com) Received: from [212.162.175.101] (helo=lusidor2002.lusidor.com) by bouba.alxhost.com with esmtp (Exim 3.36 #1) id 17tp86-0005kd-00 for freebsd-questions@FreeBSD.ORG; Tue, 24 Sep 2002 08:49:31 -0400 Message-Id: <5.1.0.14.0.20020924143122.02c62e48@mail.lusidor.nu> X-Sender: lusidor@mail.lusidor.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 24 Sep 2002 14:51:47 +0200 To: freebsd-questions@FreeBSD.ORG From: Jimmy Lantz Subject: Init & ttys(5) file = Keeping script alive? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bouba.alxhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0] X-AntiAbuse: Sender Address Domain - lusidor.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi All, I have a script that I need to run all the time and restart if it would die. I've seen that the init in the man at least offers the capabilities to run and restart scripts. So now I've been searching the web for a great while for expales of using the Init as described in man. "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." Could anyone point me to a howto or supply a example line since neither handbook nor faq mentions how just how to use getty. Should I just supply the path to my script or? Much obliged Jim. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message