Date: Mon, 07 Oct 2002 18:44:51 -0400 (EDT) From: John Baldwin <jhb@FreeBSD.org> To: Peter Jeremy <peter.jeremy@alcatel.com.au> Cc: cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG Subject: Re: cvs commit: src/sbin/init init.c Message-ID: <XFMail.20021007184451.jhb@FreeBSD.org> In-Reply-To: <20021007214019.GA80107@gsmx07.alcatel.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On 07-Oct-2002 Peter Jeremy wrote: > On 2002-Sep-27 09:02:28 -0700, John Baldwin <jhb@FreeBSD.ORG> wrote: >>jhb 2002/09/27 09:02:28 PDT >> >> Modified files: >> sbin/init init.c >> Log: >> Give up on a tty if opening it's special file returns ENOENT like we do >> for >> ENXIO. >> >> Glanced at by: imp, gallatin >> >> Revision Changes Path >> 1.52 +1 -1 src/sbin/init/init.c > > I can see why this change might be useful in conjunction with DEVFS > but I have a problem with this change. In particular, I have a number > of systems that rely on the old functionality. This is now also > inconsistent with the documentation in init(8). Well, I did originally want to make it conditional on DEVFS being present but other people weren't in favor of that. > The old behaviour is documented in init(8) as follows: > 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. > > This means that I could include the following line in /etc/ttys > proxy2 "/usr/local/libexec/proxy2 -f /usr/local/etc/proxy.ports" none on > and init would happily run my program (because /dev/proxy2 does not > exist), restarting it if it died. That seems to be a really gross hack. Arbitrary daemons have nothing to do with setting up ttys. I wouldn't mind if init grew the ability to handle arbitrary daemons via some other method that was less of a hack and more of intended design. Would that be acceptable? -- John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20021007184451.jhb>