xref: /freebsd/sbin/init/init.8 (revision 9806e231322307da0109e101ae2ef997a4a22290)
18fae3551SRodney W. Grimes.\" Copyright (c) 1980, 1991, 1993
28fae3551SRodney W. Grimes.\"	The Regents of the University of California.  All rights reserved.
38fae3551SRodney W. Grimes.\"
48fae3551SRodney W. Grimes.\" This code is derived from software contributed to Berkeley by
58fae3551SRodney W. Grimes.\" Donn Seeley at Berkeley Software Design, Inc.
68fae3551SRodney W. Grimes.\"
78fae3551SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without
88fae3551SRodney W. Grimes.\" modification, are permitted provided that the following conditions
98fae3551SRodney W. Grimes.\" are met:
108fae3551SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright
118fae3551SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer.
128fae3551SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright
138fae3551SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer in the
148fae3551SRodney W. Grimes.\"    documentation and/or other materials provided with the distribution.
158fae3551SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors
168fae3551SRodney W. Grimes.\"    may be used to endorse or promote products derived from this software
178fae3551SRodney W. Grimes.\"    without specific prior written permission.
188fae3551SRodney W. Grimes.\"
198fae3551SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
208fae3551SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
218fae3551SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
228fae3551SRodney W. Grimes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
238fae3551SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
248fae3551SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
258fae3551SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
268fae3551SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
278fae3551SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
288fae3551SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
298fae3551SRodney W. Grimes.\" SUCH DAMAGE.
308fae3551SRodney W. Grimes.\"
318fae3551SRodney W. Grimes.\"     @(#)init.8	8.3 (Berkeley) 4/18/94
327f3dea24SPeter Wemm.\" $FreeBSD$
338fae3551SRodney W. Grimes.\"
348fae3551SRodney W. Grimes.Dd April 18, 1994
358fae3551SRodney W. Grimes.Dt INIT 8
369fe48c6eSRuslan Ermilov.Os
378fae3551SRodney W. Grimes.Sh NAME
388fae3551SRodney W. Grimes.Nm init
398fae3551SRodney W. Grimes.Nd process control initialization
408fae3551SRodney W. Grimes.Sh SYNOPSIS
417c7fb079SRuslan Ermilov.Nm
427c7fb079SRuslan Ermilov.Nm
431681d659SRuslan Ermilov.Oo
441681d659SRuslan Ermilov.Cm 0 | 1 | 6 |
451681d659SRuslan Ermilov.Cm c | q
461681d659SRuslan Ermilov.Oc
478fae3551SRodney W. Grimes.Sh DESCRIPTION
488fae3551SRodney W. GrimesThe
495df42cf4SPhilippe Charnier.Nm
50e1205e80SPhilippe Charnierutility
518fae3551SRodney W. Grimesis the last stage of the boot process.
528fae3551SRodney W. GrimesIt normally runs the automatic reboot sequence as described in
531681d659SRuslan Ermilov.Xr rc 8 ,
548fae3551SRodney W. Grimesand if this succeeds, begins multi-user operation.
558fae3551SRodney W. GrimesIf the reboot scripts fail,
565df42cf4SPhilippe Charnier.Nm
571681d659SRuslan Ermilovcommences single-user operation by giving
588fae3551SRodney W. Grimesthe super-user a shell on the console.
598fae3551SRodney W. GrimesThe
605df42cf4SPhilippe Charnier.Nm
61e1205e80SPhilippe Charnierutility may be passed parameters
628fae3551SRodney W. Grimesfrom the boot program to
638fae3551SRodney W. Grimesprevent the system from going multi-user and to instead execute
641681d659SRuslan Ermilova single-user shell without starting the normal daemons.
658fae3551SRodney W. GrimesThe system is then quiescent for maintenance work and may
668fae3551SRodney W. Grimeslater be made to go to multi-user by exiting the
678fae3551SRodney W. Grimessingle-user shell (with ^D).
688fae3551SRodney W. GrimesThis
698fae3551SRodney W. Grimescauses
705df42cf4SPhilippe Charnier.Nm
718fae3551SRodney W. Grimesto run the
728fae3551SRodney W. Grimes.Pa /etc/rc
738fae3551SRodney W. Grimesstart up command file in fastboot mode (skipping disk checks).
748fae3551SRodney W. Grimes.Pp
758fae3551SRodney W. GrimesIf the
765df42cf4SPhilippe Charnier.Em console
778fae3551SRodney W. Grimesentry in the
788fae3551SRodney W. Grimes.Xr ttys 5
791681d659SRuslan Ermilovfile is marked
801681d659SRuslan Ermilov.Dq insecure ,
818fae3551SRodney W. Grimesthen
825df42cf4SPhilippe Charnier.Nm
831681d659SRuslan Ermilovwill require that the super-user password be
848fae3551SRodney W. Grimesentered before the system will start a single-user shell.
858fae3551SRodney W. GrimesThe password check is skipped if the
865df42cf4SPhilippe Charnier.Em console
871681d659SRuslan Ermilovis marked as
881681d659SRuslan Ermilov.Dq secure .
898fae3551SRodney W. Grimes.Pp
9009003f98SGiorgos KeramidasThe kernel runs with five different levels of security.
91a4edcf89SKATO TakenoriAny super-user process can raise the security level, but no process
928fae3551SRodney W. Grimescan lower it.
9338058917SBruce EvansThe security levels are:
948fae3551SRodney W. Grimes.Bl -tag -width flag
958fae3551SRodney W. Grimes.It Ic -1
9638058917SBruce EvansPermanently insecure mode \- always run the system in level 0 mode.
976ebaa024SJoseph KoshyThis is the default initial value.
988fae3551SRodney W. Grimes.It Ic 0
998fae3551SRodney W. GrimesInsecure mode \- immutable and append-only flags may be turned off.
1008fae3551SRodney W. GrimesAll devices may be read or written subject to their permissions.
1018fae3551SRodney W. Grimes.It Ic 1
10279665533SMike PritchardSecure mode \- the system immutable and system append-only flags may not
10379665533SMike Pritchardbe turned off;
1048fae3551SRodney W. Grimesdisks for mounted file systems,
1058fae3551SRodney W. Grimes.Pa /dev/mem ,
1068fae3551SRodney W. Grimes.Pa /dev/kmem
107b4089f64SMaxime Henrionand
108b4089f64SMaxime Henrion.Pa /dev/io
109b4089f64SMaxime Henrion(if your platform has it) may not be opened for writing;
1108afbbd41SBen Smithurstkernel modules (see
1118afbbd41SBen Smithurst.Xr kld 4 )
1128afbbd41SBen Smithurstmay not be loaded or unloaded.
1138fae3551SRodney W. Grimes.It Ic 2
11438058917SBruce EvansHighly secure mode \- same as secure mode, plus disks may not be
11538058917SBruce Evansopened for writing (except by
11638058917SBruce Evans.Xr mount 2 )
11738058917SBruce Evanswhether mounted or not.
1188fae3551SRodney W. GrimesThis level precludes tampering with file systems by unmounting them,
1198fae3551SRodney W. Grimesbut also inhibits running
1208fae3551SRodney W. Grimes.Xr newfs 8
1218fae3551SRodney W. Grimeswhile the system is multi-user.
122ae110038SNik Clayton.Pp
123ae110038SNik ClaytonIn addition, kernel time changes are restricted to less than or equal to one
1249806e231SRuslan Ermilovsecond.
1259806e231SRuslan ErmilovAttempts to change the time by more than this will log the message
126ae110038SNik Clayton.Dq Time adjustment clamped to +1 second .
12704b2ac6eSGuy Helmer.It Ic 3
12804b2ac6eSGuy HelmerNetwork secure mode \- same as highly secure mode, plus
12904b2ac6eSGuy HelmerIP packet filter rules (see
13004b2ac6eSGuy Helmer.Xr ipfw 8
13104b2ac6eSGuy Helmerand
13204b2ac6eSGuy Helmer.Xr ipfirewall 4 )
1331681d659SRuslan Ermilovcannot be changed and
1341681d659SRuslan Ermilov.Xr dummynet 4
1351681d659SRuslan Ermilovconfiguration cannot be adjusted.
1368fae3551SRodney W. Grimes.El
1378fae3551SRodney W. Grimes.Pp
13867b661fdSSheldon HearnIf the security level is initially nonzero, then
1395df42cf4SPhilippe Charnier.Nm
14038058917SBruce Evansleaves it unchanged.
14138058917SBruce EvansOtherwise,
1425df42cf4SPhilippe Charnier.Nm
14367b661fdSSheldon Hearnraises the level to 1 before going multi-user for the first time.
14401de0116SSheldon HearnSince the level cannot be reduced, it will be at least 1 for
14501de0116SSheldon Hearnsubsequent operation, even on return to single-user.
14667b661fdSSheldon HearnIf a level higher than 1 is desired while running multi-user,
14767b661fdSSheldon Hearnit can be set before going multi-user, e.g., by the startup script
14867b661fdSSheldon Hearn.Xr rc 8 ,
1498fae3551SRodney W. Grimesusing
1506ebaa024SJoseph Koshy.Xr sysctl 8
1516ebaa024SJoseph Koshyto set the
152280b191cSKen Smith.Va kern.securelevel
1536ebaa024SJoseph Koshyvariable to the required security level.
1548fae3551SRodney W. Grimes.Pp
155280b191cSKen SmithIf
156280b191cSKen Smith.Nm
157d04b5dfeSRuslan Ermilovis run in a jail, the security level of the
158280b191cSKen Smith.Dq host system
159280b191cSKen Smithwill not be effected.
160280b191cSKen SmithPart of the information set up in the kernel to support a jail
161280b191cSKen Smithis a per-jail
162280b191cSKen Smith.Dq securelevel
163280b191cSKen Smithsetting.
164280b191cSKen SmithThis allows running a higher security level inside of a jail
165280b191cSKen Smiththan that of the host system.
166280b191cSKen SmithSee
167280b191cSKen Smith.Xr jail 8
168280b191cSKen Smithfor more information about jails.
169280b191cSKen Smith.Pp
1708fae3551SRodney W. GrimesIn multi-user operation,
1715df42cf4SPhilippe Charnier.Nm
1728fae3551SRodney W. Grimesmaintains
1738fae3551SRodney W. Grimesprocesses for the terminal ports found in the file
1748fae3551SRodney W. Grimes.Xr ttys 5 .
175e1205e80SPhilippe CharnierThe
176e1205e80SPhilippe Charnier.Nm
177e1205e80SPhilippe Charnierutility reads this file and executes the command found in the second field,
178f0f4f756SSheldon Hearnunless the first field refers to a device in
179f0f4f756SSheldon Hearn.Pa /dev
180f0f4f756SSheldon Hearnwhich is not configured.
181f0f4f756SSheldon HearnThe first field is supplied as the final argument to the command.
1828fae3551SRodney W. GrimesThis command is usually
1838fae3551SRodney W. Grimes.Xr getty 8 ;
184edf0e5b3SMike Pritchard.Nm getty
1858fae3551SRodney W. Grimesopens and initializes the tty line
1868fae3551SRodney W. Grimesand
1878fae3551SRodney W. Grimesexecutes the
188edf0e5b3SMike Pritchard.Xr login 1
1898fae3551SRodney W. Grimesprogram.
1908fae3551SRodney W. GrimesThe
191edf0e5b3SMike Pritchard.Nm login
1928fae3551SRodney W. Grimesprogram, when a valid user logs in,
1939806e231SRuslan Ermilovexecutes a shell for that user.
1949806e231SRuslan ErmilovWhen this shell
1958fae3551SRodney W. Grimesdies, either because the user logged out
1968fae3551SRodney W. Grimesor an abnormal termination occurred (a signal),
1978fae3551SRodney W. Grimesthe
1985df42cf4SPhilippe Charnier.Nm
199e1205e80SPhilippe Charnierutility wakes up, deletes the user
2008fae3551SRodney W. Grimesfrom the
2018fae3551SRodney W. Grimes.Xr utmp 5
2028fae3551SRodney W. Grimesfile of current users and records the logout in the
203edf0e5b3SMike Pritchard.Xr wtmp 5
2048fae3551SRodney W. Grimesfile.
2058fae3551SRodney W. GrimesThe cycle is
2068fae3551SRodney W. Grimesthen restarted by
2075df42cf4SPhilippe Charnier.Nm
2088fae3551SRodney W. Grimesexecuting a new
209edf0e5b3SMike Pritchard.Nm getty
2108fae3551SRodney W. Grimesfor the line.
2118fae3551SRodney W. Grimes.Pp
212e1205e80SPhilippe CharnierThe
213e1205e80SPhilippe Charnier.Nm
214e1205e80SPhilippe Charnierutility can also be used to keep arbitrary daemons running,
215f0f4f756SSheldon Hearnautomatically restarting them if they die.
216f0f4f756SSheldon HearnIn this case, the first field in the
217f0f4f756SSheldon Hearn.Xr ttys 5
218f0f4f756SSheldon Hearnfile must not reference the path to a configured device node
219f0f4f756SSheldon Hearnand will be passed to the daemon
220f0f4f756SSheldon Hearnas the final argument on its command line.
221f0f4f756SSheldon HearnThis is similar to the facility offered in the
222f0f4f756SSheldon Hearn.At V
223f0f4f756SSheldon Hearn.Pa /etc/inittab .
224f0f4f756SSheldon Hearn.Pp
2258fae3551SRodney W. GrimesLine status (on, off, secure, getty, or window information)
2268fae3551SRodney W. Grimesmay be changed in the
227edf0e5b3SMike Pritchard.Xr ttys 5
2288fae3551SRodney W. Grimesfile without a reboot by sending the signal
2298fae3551SRodney W. Grimes.Dv SIGHUP
2308fae3551SRodney W. Grimesto
2315df42cf4SPhilippe Charnier.Nm
2328fae3551SRodney W. Grimeswith the command
2338fae3551SRodney W. Grimes.Dq Li "kill -HUP 1" .
2348fae3551SRodney W. GrimesOn receipt of this signal,
2355df42cf4SPhilippe Charnier.Nm
2368fae3551SRodney W. Grimesre-reads the
237edf0e5b3SMike Pritchard.Xr ttys 5
2388fae3551SRodney W. Grimesfile.
2398fae3551SRodney W. GrimesWhen a line is turned off in
240edf0e5b3SMike Pritchard.Xr ttys 5 ,
2415df42cf4SPhilippe Charnier.Nm
2428fae3551SRodney W. Grimeswill send a SIGHUP signal to the controlling process
2438fae3551SRodney W. Grimesfor the session associated with the line.
2448fae3551SRodney W. GrimesFor any lines that were previously turned off in the
245edf0e5b3SMike Pritchard.Xr ttys 5
2468fae3551SRodney W. Grimesfile and are now on,
2475df42cf4SPhilippe Charnier.Nm
248f0f4f756SSheldon Hearnexecutes the command specified in the second field.
249f0f4f756SSheldon HearnIf the command or window field for a line is changed,
2508fae3551SRodney W. Grimesthe change takes effect at the end of the current
2518fae3551SRodney W. Grimeslogin session (e.g., the next time
2525df42cf4SPhilippe Charnier.Nm
2538fae3551SRodney W. Grimesstarts a process on the line).
2548fae3551SRodney W. GrimesIf a line is commented out or deleted from
255edf0e5b3SMike Pritchard.Xr ttys 5 ,
2565df42cf4SPhilippe Charnier.Nm
2578fae3551SRodney W. Grimeswill not do anything at all to that line.
2588fae3551SRodney W. GrimesHowever, it will complain that the relationship between lines
2598fae3551SRodney W. Grimesin the
260edf0e5b3SMike Pritchard.Xr ttys 5
2618fae3551SRodney W. Grimesfile and records in the
262edf0e5b3SMike Pritchard.Xr utmp 5
2638fae3551SRodney W. Grimesfile is out of sync,
2648fae3551SRodney W. Grimesso this practice is not recommended.
2658fae3551SRodney W. Grimes.Pp
266e1205e80SPhilippe CharnierThe
267e1205e80SPhilippe Charnier.Nm
268e1205e80SPhilippe Charnierutility will terminate multi-user operations and resume single-user mode
2698fae3551SRodney W. Grimesif sent a terminate
2708fae3551SRodney W. Grimes.Pq Dv TERM
2718fae3551SRodney W. Grimessignal, for example,
2728fae3551SRodney W. Grimes.Dq Li "kill \-TERM 1" .
2738fae3551SRodney W. GrimesIf there are processes outstanding that are deadlocked (because of
2748fae3551SRodney W. Grimeshardware or software failure),
2755df42cf4SPhilippe Charnier.Nm
2768fae3551SRodney W. Grimeswill not wait for them all to die (which might take forever), but
2778fae3551SRodney W. Grimeswill time out after 30 seconds and print a warning message.
2788fae3551SRodney W. Grimes.Pp
279e1205e80SPhilippe CharnierThe
280e1205e80SPhilippe Charnier.Nm
281e1205e80SPhilippe Charnierutility will cease creating new processes
2828fae3551SRodney W. Grimesand allow the system to slowly die away, if it is sent a terminal stop
2838fae3551SRodney W. Grimes.Pq Dv TSTP
28457e4378bSRuslan Ermilovsignal, i.e.\&
2858fae3551SRodney W. Grimes.Dq Li "kill \-TSTP 1" .
2868fae3551SRodney W. GrimesA later hangup will resume full
2871681d659SRuslan Ermilovmulti-user operations, or a terminate will start a single-user shell.
2888fae3551SRodney W. GrimesThis hook is used by
2898fae3551SRodney W. Grimes.Xr reboot 8
2908fae3551SRodney W. Grimesand
2918fae3551SRodney W. Grimes.Xr halt 8 .
2928fae3551SRodney W. Grimes.Pp
293e1205e80SPhilippe CharnierThe
294e1205e80SPhilippe Charnier.Nm
295e1205e80SPhilippe Charnierutility will terminate all possible processes (again, it will not wait
296e460cfd3SNate Williamsfor deadlocked processes) and reboot the machine if sent the interrupt
297e460cfd3SNate Williams.Pq Dv INT
29857e4378bSRuslan Ermilovsignal, i.e.\&
299e460cfd3SNate Williams.Dq Li "kill \-INT 1".
300e460cfd3SNate WilliamsThis is useful for shutting the machine down cleanly from inside the kernel
3014f3cac8fSAdam Davidor from X when the machine appears to be hung.
302e460cfd3SNate Williams.Pp
303e1205e80SPhilippe CharnierThe
304e1205e80SPhilippe Charnier.Nm
305e1205e80SPhilippe Charnierutility will do the same, except it will halt the machine if sent
306a0a549c7SRuslan Ermilovthe user defined signal 1
307a0a549c7SRuslan Ermilov.Pq Dv USR1 ,
3081681d659SRuslan Ermilovor will halt and turn the power off (if hardware permits) if sent
309a0a549c7SRuslan Ermilovthe user defined signal 2
310a0a549c7SRuslan Ermilov.Pq Dv USR2 .
311a0a549c7SRuslan Ermilov.Pp
3126ebaa024SJoseph KoshyWhen shutting down the machine,
3135df42cf4SPhilippe Charnier.Nm
3148889c700SDavid Nugentwill try to run the
3158889c700SDavid Nugent.Pa /etc/rc.shutdown
316ef8f7ac9SSheldon Hearnscript.
317ef8f7ac9SSheldon HearnThis script can be used to cleanly terminate specific programs such
3188889c700SDavid Nugentas
3198889c700SDavid Nugent.Nm innd
3208889c700SDavid Nugent(the InterNetNews server).
3218889c700SDavid Nugent.Pp
3228fae3551SRodney W. GrimesThe role of
3235df42cf4SPhilippe Charnier.Nm
3248fae3551SRodney W. Grimesis so critical that if it dies, the system will reboot itself
3258fae3551SRodney W. Grimesautomatically.
3268fae3551SRodney W. GrimesIf, at bootstrap time, the
3275df42cf4SPhilippe Charnier.Nm
3288fae3551SRodney W. Grimesprocess cannot be located, the system will panic with the message
3291681d659SRuslan Ermilov.Dq "panic: init died (signal %d, exit %d)" .
3301681d659SRuslan Ermilov.Pp
3315d94d8b6SRuslan ErmilovIf run as a user process as shown in the second synopsis line,
3321681d659SRuslan Ermilov.Nm
3331681d659SRuslan Ermilovwill emulate
3341681d659SRuslan Ermilov.At V
3359806e231SRuslan Ermilovbehavior, i.e., super-user can specify the desired
3361681d659SRuslan Ermilov.Em run-level
3371681d659SRuslan Ermilovon a command line, and
3381681d659SRuslan Ermilov.Nm
3391681d659SRuslan Ermilovwill signal the original
340c4d9468eSRuslan Ermilov(PID 1)
3411681d659SRuslan Ermilov.Nm
3421681d659SRuslan Ermilovas follows:
3431681d659SRuslan Ermilov.Bl -column Run-level SIGTERM
344d8aa002eSRuslan Ermilov.It Sy "Run-level	Signal	Action
3451681d659SRuslan Ermilov.It Cm 0 Ta Dv SIGUSR2 Ta "Halt and turn the power off"
3461681d659SRuslan Ermilov.It Cm 1 Ta Dv SIGTERM Ta "Go to single-user mode"
3471681d659SRuslan Ermilov.It Cm 6 Ta Dv SIGINT Ta "Reboot the machine"
3481681d659SRuslan Ermilov.It Cm c Ta Dv SIGTSTP Ta "Block further logins"
3491681d659SRuslan Ermilov.It Cm q Ta Dv SIGHUP Ta Rescan the
3501681d659SRuslan Ermilov.Xr ttys 5
3511681d659SRuslan Ermilovfile
3521681d659SRuslan Ermilov.El
3538fae3551SRodney W. Grimes.Sh DIAGNOSTICS
3542306a12fSDima Dorfman.Bl -diag
3552306a12fSDima Dorfman.It "getty repeating too quickly on port %s, sleeping."
3568fae3551SRodney W. GrimesA process being started to service a line is exiting quickly
3578fae3551SRodney W. Grimeseach time it is started.
3588fae3551SRodney W. GrimesThis is often caused by a ringing or noisy terminal line.
359522ccf3fSRuslan Ermilov.Bf -emphasis
360522ccf3fSRuslan ErmilovInit will sleep for 30 seconds,
361522ccf3fSRuslan Ermilovthen continue trying to start the process.
362522ccf3fSRuslan Ermilov.Ef
3632306a12fSDima Dorfman.It "some processes would not die; ps axl advised."
3648fae3551SRodney W. GrimesA process
3658fae3551SRodney W. Grimesis hung and could not be killed when the system was shutting down.
3668fae3551SRodney W. GrimesThis condition is usually caused by a process
3678fae3551SRodney W. Grimesthat is stuck in a device driver because of
3688fae3551SRodney W. Grimesa persistent device error condition.
3698fae3551SRodney W. Grimes.El
3708fae3551SRodney W. Grimes.Sh FILES
371a0a549c7SRuslan Ermilov.Bl -tag -width /etc/rc.shutdown -compact
3728fae3551SRodney W. Grimes.It Pa /dev/console
3735df42cf4SPhilippe Charniersystem console device
3748fae3551SRodney W. Grimes.It Pa /dev/tty*
3755df42cf4SPhilippe Charnierterminal ports found in
3765df42cf4SPhilippe Charnier.Xr ttys 5
3778fae3551SRodney W. Grimes.It Pa /var/run/utmp
3785df42cf4SPhilippe Charnierrecord of current users on the system
3798fae3551SRodney W. Grimes.It Pa /var/log/wtmp
3805df42cf4SPhilippe Charnierrecord of all logins and logouts
3818fae3551SRodney W. Grimes.It Pa /etc/ttys
3825df42cf4SPhilippe Charnierthe terminal initialization information file
3838fae3551SRodney W. Grimes.It Pa /etc/rc
3845df42cf4SPhilippe Charniersystem startup commands
3858889c700SDavid Nugent.It Pa /etc/rc.shutdown
3865df42cf4SPhilippe Charniersystem shutdown commands
3878fae3551SRodney W. Grimes.El
3888fae3551SRodney W. Grimes.Sh SEE ALSO
3898fae3551SRodney W. Grimes.Xr kill 1 ,
390af202156SWolfram Schneider.Xr login 1 ,
3918fae3551SRodney W. Grimes.Xr sh 1 ,
3921681d659SRuslan Ermilov.Xr dummynet 4 ,
39304b2ac6eSGuy Helmer.Xr ipfirewall 4 ,
3948afbbd41SBen Smithurst.Xr kld 4 ,
3958fae3551SRodney W. Grimes.Xr ttys 5 ,
3968fae3551SRodney W. Grimes.Xr crash 8 ,
3978fae3551SRodney W. Grimes.Xr getty 8 ,
398af202156SWolfram Schneider.Xr halt 8 ,
39904b2ac6eSGuy Helmer.Xr ipfw 8 ,
400280b191cSKen Smith.Xr jail 8 ,
4018fae3551SRodney W. Grimes.Xr rc 8 ,
4028fae3551SRodney W. Grimes.Xr reboot 8 ,
4036ebaa024SJoseph Koshy.Xr shutdown 8 ,
4046ebaa024SJoseph Koshy.Xr sysctl 8
4058fae3551SRodney W. Grimes.Sh HISTORY
406a0a549c7SRuslan ErmilovAn
4078fae3551SRodney W. Grimes.Nm
408e1205e80SPhilippe Charnierutility appeared in
4098fae3551SRodney W. Grimes.At v6 .
4106ebaa024SJoseph Koshy.Sh CAVEATS
4118fae3551SRodney W. GrimesSystems without
4129680d7b6SPhilippe Charnier.Xr sysctl 8
4138fae3551SRodney W. Grimesbehave as though they have security level \-1.
4146ebaa024SJoseph Koshy.Pp
41504b2ac6eSGuy HelmerSetting the security level above 1 too early in the boot sequence can
4166ebaa024SJoseph Koshyprevent
4176ebaa024SJoseph Koshy.Xr fsck 8
4189806e231SRuslan Ermilovfrom repairing inconsistent file systems.
4199806e231SRuslan ErmilovThe
4206ebaa024SJoseph Koshypreferred location to set the security level is at the end of
4216ebaa024SJoseph Koshy.Pa /etc/rc
4226ebaa024SJoseph Koshyafter all multi-user startup actions are complete.
423