aboutsummaryrefslogtreecommitdiff
path: root/sbin/init
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>1999-12-06 09:07:14 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>1999-12-06 09:07:14 +0000
commitf0f4f7562034efc0d75a49beb1e6d82ebadd76ed (patch)
treeae2f21efeaf2730ed8b8326a70f1adcec00d9cac /sbin/init
parent8d133d9561230d94880c2c67e35157cf14c80581 (diff)
Notes
Diffstat (limited to 'sbin/init')
-rw-r--r--sbin/init/init.827
1 files changed, 20 insertions, 7 deletions
diff --git a/sbin/init/init.8 b/sbin/init/init.8
index d779c0e6f831..c25496310309 100644
--- a/sbin/init/init.8
+++ b/sbin/init/init.8
@@ -152,7 +152,11 @@ maintains
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 first field refers to a device in
+.Pa /dev
+which is not configured.
+The first field is supplied as the final argument to the command.
This command is usually
.Xr getty 8 ;
.Nm getty
@@ -182,6 +186,18 @@ executing a new
.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 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 V
+.Pa /etc/inittab .
+.Pp
Line status (on, off, secure, getty, or window information)
may be changed in the
.Xr ttys 5
@@ -205,10 +221,8 @@ For any lines that were previously turned off in the
.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
@@ -238,8 +252,7 @@ will not wait for them all to die (which might take forever), but
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.