Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Dec 1999 12:12:14 +0100
From:      Jos Backus <Jos.Backus@nl.origin-it.com>
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>
In-Reply-To: <12873.945299269@critter.freebsd.dk>; from phk@critter.freebsd.dk on Thu, Dec 16, 1999 at 12:07:49AM %2B0100
References:  <99Dec16.095420est.40348@border.alcanet.com.au> <12873.945299269@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991216121214.B34062>