summaryrefslogtreecommitdiff
path: root/usr/src/cmd/init/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/init/init.c')
-rw-r--r--usr/src/cmd/init/init.c58
1 files changed, 29 insertions, 29 deletions
diff --git a/usr/src/cmd/init/init.c b/usr/src/cmd/init/init.c
index 844f22d895..1afc73b976 100644
--- a/usr/src/cmd/init/init.c
+++ b/usr/src/cmd/init/init.c
@@ -41,8 +41,8 @@
*/
/*
- * init(1M) is the general process spawning program. Its primary job is to
- * start and restart svc.startd for smf(5). For backwards-compatibility it also
+ * init(8) is the general process spawning program. Its primary job is to
+ * start and restart svc.startd for smf(7). For backwards-compatibility it also
* spawns and respawns processes according to /etc/inittab and the current
* run-level. It reads /etc/default/inittab for general configuration.
*
@@ -58,35 +58,35 @@
* which each inittab entry is valid.
*
* State File and Restartability
- * Premature exit by init(1M) is handled as a special case by the kernel:
- * init(1M) will be immediately re-executed, retaining its original PID. (PID
+ * Premature exit by init(8) is handled as a special case by the kernel:
+ * init(8) will be immediately re-executed, retaining its original PID. (PID
* 1 in the global zone.) To track the processes it has previously spawned,
- * as well as other mutable state, init(1M) regularly updates a state file
+ * as well as other mutable state, init(8) regularly updates a state file
* such that its subsequent invocations have knowledge of its various
* dependent processes and duties.
*
* Process Contracts
- * We start svc.startd(1M) in a contract and transfer inherited contracts when
+ * We start svc.startd(8) in a contract and transfer inherited contracts when
* restarting it. Everything else is started using the legacy contract
* template, and the created contracts are abandoned when they become empty.
*
* utmpx Entry Handling
- * Because init(1M) no longer governs the startup process, its knowledge of
+ * Because init(8) no longer governs the startup process, its knowledge of
* when utmpx becomes writable is indirect. However, spawned processes
* expect to be constructed with valid utmpx entries. As a result, attempts
* to write normal entries will be retried until successful.
*
* Maintenance Mode
- * In certain failure scenarios, init(1M) will enter a maintenance mode, in
- * which it invokes sulogin(1M) to allow the operator an opportunity to
+ * In certain failure scenarios, init(8) will enter a maintenance mode, in
+ * which it invokes sulogin(8) to allow the operator an opportunity to
* repair the system. Normally, this operation is performed as a
* fork(2)-exec(2)-waitpid(3C) sequence with the parent waiting for repair or
* diagnosis to be completed. In the cases that fork(2) requests themselves
- * fail, init(1M) will directly execute sulogin(1M), and allow the kernel to
- * restart init(1M) on exit from the operator session.
+ * fail, init(8) will directly execute sulogin(8), and allow the kernel to
+ * restart init(8) on exit from the operator session.
*
- * One scenario where init(1M) enters its maintenance mode is when
- * svc.startd(1M) begins to fail rapidly, defined as when the average time
+ * One scenario where init(8) enters its maintenance mode is when
+ * svc.startd(8) begins to fail rapidly, defined as when the average time
* between recent failures drops below a given threshold.
*/
@@ -547,7 +547,7 @@ static char startd_svc_aux[SVC_AUX_SIZE];
static char startd_cline[256] = ""; /* svc.startd's command line */
static int do_restart_startd = 1; /* Whether to restart svc.startd. */
static char *smf_options = NULL; /* Options to give to startd. */
-static int smf_debug = 0; /* Messages for debugging smf(5) */
+static int smf_debug = 0; /* Messages for debugging smf(7) */
static time_t init_boot_time; /* Substitute for kernel boot time. */
#define NSTARTD_FAILURE_TIMES 3 /* trigger after 3 failures */
@@ -940,8 +940,8 @@ update_boot_archive(int new_state)
/*
* void enter_maintenance()
- * A simple invocation of sulogin(1M), with no baggage, in the case that we
- * are unable to activate svc.startd(1M). We fork; the child runs sulogin;
+ * A simple invocation of sulogin(8), with no baggage, in the case that we
+ * are unable to activate svc.startd(8). We fork; the child runs sulogin;
* we wait for it to exit.
*/
static void
@@ -2021,7 +2021,7 @@ boot_init()
(void) strcpy(glob_envp[0], INIT_PATH);
/*
- * Scan inittab(4) and process the special svc.startd entry, initdefault
+ * Scan inittab(5) and process the special svc.startd entry, initdefault
* and sysinit entries.
*/
while (getcmd(&cmd, &line[0]) == TRUE) {
@@ -2104,7 +2104,7 @@ boot_init()
write_ioctl_syscon();
/*
- * Start svc.startd(1M), which does most of the work.
+ * Start svc.startd(8), which does most of the work.
*/
if (startd_cline[0] != '\0' && startd_tmpl >= 0) {
/* Start svc.startd. */
@@ -2223,7 +2223,7 @@ setup_pipe()
}
/*
- * siglvl - handle an asynchronous signal from init(1M) telling us that we
+ * siglvl - handle an asynchronous signal from init(8) telling us that we
* should change the current run level. We set new_state accordingly.
*/
void
@@ -2233,7 +2233,7 @@ siglvl(int sig, siginfo_t *sip, ucontext_t *ucp)
struct sigaction act;
/*
- * If the signal was from the kernel (rather than init(1M)) then init
+ * If the signal was from the kernel (rather than init(8)) then init
* itself tripped the signal. That is, we might have a bug and tripped
* a real SIGSEGV instead of receiving it as an alias for SIGLVLa. In
* such a case we reset the disposition to SIG_DFL, block all signals
@@ -3070,7 +3070,7 @@ get_scope:
case SCF_ERROR_NOT_FOUND:
(void) fputs(gettext(
- "smf(5) repository missing local scope.\n"),
+ "smf(7) repository missing local scope.\n"),
stderr);
exit(1);
/* NOTREACHED */
@@ -3262,12 +3262,12 @@ scferr(void)
case SCF_ERROR_CONNECTION_BROKEN:
console(B_TRUE, gettext(
- "Connection to smf(5) repository server broken.\n"));
+ "Connection to smf(7) repository server broken.\n"));
break;
case SCF_ERROR_NO_RESOURCES:
console(B_TRUE, gettext(
- "smf(5) repository server is out of memory.\n"));
+ "smf(7) repository server is out of memory.\n"));
break;
case SCF_ERROR_PERMISSION_DENIED:
@@ -3302,7 +3302,7 @@ lscf_set_runlevel(char rl)
switch (scf_error()) {
case SCF_ERROR_NO_SERVER:
console(B_TRUE,
- gettext("smf(5) repository server not running.\n"));
+ gettext("smf(7) repository server not running.\n"));
goto bail;
default:
@@ -3864,7 +3864,7 @@ st_init()
do {
/*
* If we can exclusively create the file, then we're the
- * initial invocation of init(1M).
+ * initial invocation of init(8).
*/
st_fd = open(init_state_file, O_RDWR | O_CREAT | O_EXCL,
S_IRUSR | S_IWUSR);
@@ -4134,7 +4134,7 @@ contracts_init()
if (legacy_tmpl < 0 && startd_tmpl < 0) {
/* The creation errors have already been reported. */
console(B_TRUE,
- "Ignoring contract events. Core smf(5) services will not "
+ "Ignoring contract events. Core smf(7) services will not "
"be restarted.\n");
return;
}
@@ -4148,7 +4148,7 @@ contracts_init()
;
if (fd < 0) {
console(B_TRUE,
- "Couldn't open process pbundle: %s. Core smf(5) services "
+ "Couldn't open process pbundle: %s. Core smf(7) services "
"will not be restarted.\n", strerror(errno));
return;
}
@@ -4316,11 +4316,11 @@ contract_event(struct pollfd *poll)
}
/*
- * svc.startd(1M) Management
+ * svc.startd(8) Management
*/
/*
- * (Re)start svc.startd(1M). old_ctid should be the contract ID of the old
+ * (Re)start svc.startd(8). old_ctid should be the contract ID of the old
* contract, or 0 if we're starting it for the first time. If wait is true
* we'll wait for and return the exit value of the child.
*/