From owner-freebsd-bugs Tue May 22 15:30: 6 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0C54E37B43C for ; Tue, 22 May 2001 15:30:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4MMU3485591; Tue, 22 May 2001 15:30:03 -0700 (PDT) (envelope-from gnats) Date: Tue, 22 May 2001 15:30:03 -0700 (PDT) Message-Id: <200105222230.f4MMU3485591@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Doug Barton Subject: Re: conf/27418: There are *no* examples of using /etc/ttys inittab-like feature Reply-To: Doug Barton Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR conf/27418; it has been noted by GNATS. From: Doug Barton To: mwm@mired.org Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: conf/27418: There are *no* examples of using /etc/ttys inittab-like feature Date: Tue, 22 May 2001 15:20:09 -0700 mwm@mired.org wrote: > The init page mentions - in one paragraph - that /etc/ttys can be used to > start a daemon, similar to the SysV /etc/inittab. This doesn't include an > example, and there don't seem to be any such examples. I think that's because in practice it doesn't work well for daemons that fork and put themselves in the background. getty doesn't do that, so init holds it open continuously, and respawns a new copy if the one it's holding open dies. In the case of a standard daemon, init will continuously restart it since when init runs the command the copy it's trying to hold open "disappears" each time. How would you feel about amending the man page to describe this problem instead of adding an example to /etc/ttys? Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message