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
                             _/  _/ _/    _/
[EMAIL PROTECTED]  _/_/  _/_/_/      use Std::Disclaimer;


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to