From owner-freebsd-current Thu Dec 16 2:58:55 1999 Delivered-To: freebsd-current@freebsd.org Received: from gw-nl4.philips.com (gw-nl4.philips.com [192.68.44.36]) by hub.freebsd.org (Postfix) with ESMTP id 1FD8B14DAA for ; Thu, 16 Dec 1999 02:58:53 -0800 (PST) (envelope-from Jos.Backus@nl.origin-it.com) Received: from smtprelay-nl1.philips.com (localhost.philips.com [127.0.0.1]) by gw-nl4.philips.com with ESMTP id LAA22444 for ; Thu, 16 Dec 1999 11:58:49 +0100 (MET) (envelope-from Jos.Backus@nl.origin-it.com) Received: from smtprelay-eur1.philips.com(130.139.36.3) by gw-nl4.philips.com via mwrap (4.0a) id xma022439; Thu, 16 Dec 99 11:58:49 +0100 Received: from hal.mpn.cp.philips.com (hal.mpn.cp.philips.com [130.139.64.195]) by smtprelay-nl1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with SMTP id LAA05966 for ; Thu, 16 Dec 1999 11:58:48 +0100 (MET) Received: (qmail 28965 invoked by uid 666); 16 Dec 1999 11:12:14 -0000 Date: Thu, 16 Dec 1999 12:12:14 +0100 From: Jos Backus To: current@FreeBSD.ORG Subject: Re: MAKEDEV (Re: Speaking of moving files (Re: make world broken building fortunes ) ) Message-ID: <19991216121214.B34062@hal.mpn.cp.philips.com> Reply-To: Jos Backus References: <99Dec16.095420est.40348@border.alcanet.com.au> <12873.945299269@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <12873.945299269@critter.freebsd.dk>; from phk@critter.freebsd.dk on Thu, Dec 16, 1999 at 12:07:49AM +0100 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Dec 16, 1999 at 12:07:49AM +0100, Poul-Henning Kamp wrote: > I would prefer if the lines could be added to /etc/ttys somewhat > like: > sshd "/usr/local/sbin/sshd" none ondemand > > And then we could > telinit -on sshd > telinit -off sshd hal:/service# ls -l telnetd total 2 -rwxr-xr-x 1 root wheel 64 Sep 20 11:34 run drwx------ 2 root wheel 512 Dec 14 16:09 supervise hal:/service# cat telnetd/run #!/bin/sh exec \ tcpserver -RH -D 0 telnet /usr/libexec/telnetd hal:/service# svstat telnetd telnetd: up (pid 224) hal:/service# svc -d telnetd hal:/service# svstat telnetd telnetd: down, normally up hal:/service# svc -u telnetd hal:/service# svstat telnetd telnetd: up (pid 40965) init's role is assumed by a program named svscan. Of course, svscan not being init, it cannot control daemons that background themselves. http://cr.yp.to/daemontools.html -- Jos Backus _/ _/_/_/ "Reliability means never _/ _/ _/ having to say you're sorry." _/ _/_/_/ -- D. J. Bernstein _/ _/ _/ _/ Jos.Backus@nl.origin-it.com _/_/ _/_/_/ use Std::Disclaimer; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message