diff options
Diffstat (limited to 'share/man/man8/rc.8')
-rw-r--r-- | share/man/man8/rc.8 | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/share/man/man8/rc.8 b/share/man/man8/rc.8 index 1f665194abe..0ec0c3c7b17 100644 --- a/share/man/man8/rc.8 +++ b/share/man/man8/rc.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rc.8,v 1.35 2011/04/27 12:31:02 jmc Exp $ +.\" $OpenBSD: rc.8,v 1.36 2011/04/29 07:08:27 jmc Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)rc.8 8.2 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: April 27 2011 $ +.Dd $Mdocdate: April 29 2011 $ .Dt RC 8 .Os .Sh NAME @@ -44,8 +44,7 @@ .Nm rc is the command script that is invoked by .Xr init 8 -when booting into multi-user mode, -and after single user mode is exited. +when the system starts up. It performs system housekeeping chores and starts up system daemons. Additionally, .Nm rc @@ -66,9 +65,7 @@ scripts hold commands which are pertinent only to a specific site. .Pp All of these startup scripts are controlled to some extent by variables defined in -.Xr rc.conf 8 -and -.Xr rc.conf.local 8 , +.Xr rc.conf 8 , which specify which daemons and services to run. .Pp Before @@ -79,12 +76,11 @@ it sets the process priority, umask, and resource limits according to the .Dq daemon login class as described in .Xr login.conf 5 . -.Pp -When booting into multi-user mode +It then starts .Nm rc -is invoked with the argument -.Em autoboot . -The first portion of +and attempts to execute the sequence of commands therein. +.Pp +The first part of .Nm rc runs an .Xr fsck 8 @@ -101,15 +97,11 @@ is run. However, if the file .Pa /fastboot exists, -.Xr fsck 8 -will not be invoked during this boot. -This file is then removed so that fsck will be run on subsequent boots. +fsck will not be invoked. +The file is then removed so that fsck will be run on subsequent boots. .Pp The second part of -.Nm rc , -which is also run by -.Xr init 8 -after a single user shell terminates, +.Nm rc then asks .Xr rc.conf 8 for configuration variables, @@ -121,6 +113,15 @@ and saves any possible core image that might have been generated as a result of a system crash, with .Xr savecore 8 . .Pp +If at any point the boot script fails, +.Xr init 8 +enters single-user mode, +allowing the superuser a shell on the console. +On exiting this mode, +init again invokes +.Nm rc , +but this time without performing the file system preen. +.Pp Before .Nm rc starts most system daemons, |