Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Aug 1999 13:50:01 -0700 (PDT)
From:      Peter Jeremy <jeremyp@gsmx07.alcatel.com.au>
To:        freebsd-doc@freebsd.org
Subject:   Re: bin/12767: Expand /etc/ttys manpage
Message-ID:  <199908042050.NAA43323@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/12767; it has been noted by GNATS.

From: Peter Jeremy <jeremyp@gsmx07.alcatel.com.au>
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




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