From owner-freebsd-chat Tue Oct 30 16:58:38 2001 Delivered-To: freebsd-chat@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id E856337B408 for ; Tue, 30 Oct 2001 16:58:34 -0800 (PST) Received: (qmail 7311 invoked by uid 100); 31 Oct 2001 00:58:29 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15327.19637.32544.539261@guru.mired.org> Date: Tue, 30 Oct 2001 18:58:29 -0600 To: Cc: "Frank Laszlo" , Subject: RE: Start scripts as "deamons" In-Reply-To: References: X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Jacco types: > # inittab This file describes how the INIT process should set up > # the system in a certain run-level. > # > > # Default runlevel. The runlevels used by RHS are: > # 0 - halt (Do NOT set initdefault to this) > # 1 - Single user mode > # 2 - Multiuser, without NFS (The same as 3, if you do not have > networking) > # 3 - Full multiuser mode > # 4 - unused > # 5 - X11 > # 6 - reboot (Do NOT set initdefault to this) > > processname:23:respawn:scriptname > > > This means that the script always runs when the machine is up and not at a > defined time (crontab). You can kill it with a "killall -HUP processname" > and it comes right back up and running again..... (on my RedHat 6.2 machine > witch is a bad one and has to be replaced by FreeBSD). > I'm looking for a similar option in Freebsd. The tool is still init, but it goes in the ttys file: processname scriptname terminal on scritpname is invoked with processname as an argument. TERM is set to the value of terminal, and the last status is either on or off to enable or disable that particular command. See the init(8) man page for more information. There's an example floating around in the PR database as well, but I'm not sure what happened to it. http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message