From owner-freebsd-doc Wed Aug 4 13:50:45 1999 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id BE8961502F for ; Wed, 4 Aug 1999 13:50:41 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id NAA43323; Wed, 4 Aug 1999 13:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Wed, 4 Aug 1999 13:50:01 -0700 (PDT) Message-Id: <199908042050.NAA43323@freefall.freebsd.org> To: freebsd-doc@freebsd.org Cc: From: Peter Jeremy Subject: Re: bin/12767: Expand /etc/ttys manpage Reply-To: Peter Jeremy Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/12767; it has been noted by GNATS. From: Peter Jeremy To: sheldonh@uunet.co.za Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/12767: Expand /etc/ttys manpage Date: Thu, 5 Aug 1999 06:39:40 +1000 Hi Sheldon, >I'm still puzzling over how to describe effectively in both manpages >what you want explained. How about the following: Index: init.8 =================================================================== RCS file: /home/CVSROOT/./src/sbin/init/init.8,v retrieving revision 1.17 diff -u -r1.17 init.8 --- init.8 1999/07/05 18:12:13 1.17 +++ init.8 1999/08/04 20:36:01 @@ -153,7 +153,9 @@ processes for the terminal ports found in the file .Xr ttys 5 . .Nm Init -reads this file, and executes the command found in the second field. +reads this file, and executes the command found in the second field, +unless the tty specified in the first field is not configured. +The first field is supplied as the final argument to the command. This command is usually .Xr getty 8 ; .Nm getty @@ -183,6 +185,14 @@ .Nm getty for the line. .Pp +.Nm Init +can also be used to keep arbitrary daemons running - automatically +restarting them if they die. +In this case, the first field in the +.Xr ttys 5 +file can specify any arbitrary string (though it will be passed to +the daemon on its command line). +.Pp Line status (on, off, secure, getty, or window information) may be changed in the .Xr ttys 5 @@ -206,10 +216,8 @@ .Xr ttys 5 file and are now on, .Nm -executes a new -.Nm getty -to enable a new login. -If the getty or window field for a line is changed, +executes the command specified in the second field. +If the command or window field for a line is changed, the change takes effect at the end of the current login session (e.g., the next time .Nm @@ -239,8 +247,7 @@ will time out after 30 seconds and print a warning message. .Pp .Nm Init -will cease creating new -.Nm getty Ns 's +will cease creating new processes and allow the system to slowly die away, if it is sent a terminal stop .Pq Dv TSTP signal, i.e. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message