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.\" 3. All advertising materials mentioning features or use of this software 168fae3551SRodney W. Grimes.\" must display the following acknowledgement: 178fae3551SRodney W. Grimes.\" This product includes software developed by the University of 188fae3551SRodney W. Grimes.\" California, Berkeley and its contributors. 198fae3551SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors 208fae3551SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 218fae3551SRodney W. Grimes.\" without specific prior written permission. 228fae3551SRodney W. Grimes.\" 238fae3551SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 248fae3551SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 258fae3551SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 268fae3551SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 278fae3551SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 288fae3551SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 298fae3551SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 308fae3551SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 318fae3551SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 328fae3551SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 338fae3551SRodney W. Grimes.\" SUCH DAMAGE. 348fae3551SRodney W. Grimes.\" 358fae3551SRodney W. Grimes.\" @(#)init.8 8.3 (Berkeley) 4/18/94 361681d659SRuslan Ermilov.\" $Id: init.8,v 1.14 1999/06/16 20:01:18 ru Exp $ 378fae3551SRodney W. Grimes.\" 388fae3551SRodney W. Grimes.Dd April 18, 1994 398fae3551SRodney W. Grimes.Dt INIT 8 408fae3551SRodney W. Grimes.Os BSD 4 418fae3551SRodney W. Grimes.Sh NAME 428fae3551SRodney W. Grimes.Nm init 438fae3551SRodney W. Grimes.Nd process control initialization 448fae3551SRodney W. Grimes.Sh SYNOPSIS 458fae3551SRodney W. Grimes.Nm init 461681d659SRuslan Ermilov.Nm init 471681d659SRuslan Ermilov.Oo 481681d659SRuslan Ermilov.Cm 0 | 1 | 6 | 491681d659SRuslan Ermilov.Cm c | q 501681d659SRuslan Ermilov.Oc 518fae3551SRodney W. Grimes.Sh DESCRIPTION 528fae3551SRodney W. GrimesThe 535df42cf4SPhilippe Charnier.Nm 548fae3551SRodney W. Grimesprogram 558fae3551SRodney W. Grimesis the last stage of the boot process. 568fae3551SRodney W. GrimesIt normally runs the automatic reboot sequence as described in 571681d659SRuslan Ermilov.Xr rc 8 , 588fae3551SRodney W. Grimesand if this succeeds, begins multi-user operation. 598fae3551SRodney W. GrimesIf the reboot scripts fail, 605df42cf4SPhilippe Charnier.Nm 611681d659SRuslan Ermilovcommences single-user operation by giving 628fae3551SRodney W. Grimesthe super-user a shell on the console. 638fae3551SRodney W. GrimesThe 645df42cf4SPhilippe Charnier.Nm 658fae3551SRodney W. Grimesprogram may be passed parameters 668fae3551SRodney W. Grimesfrom the boot program to 678fae3551SRodney W. Grimesprevent the system from going multi-user and to instead execute 681681d659SRuslan Ermilova single-user shell without starting the normal daemons. 698fae3551SRodney W. GrimesThe system is then quiescent for maintenance work and may 708fae3551SRodney W. Grimeslater be made to go to multi-user by exiting the 718fae3551SRodney W. Grimessingle-user shell (with ^D). 728fae3551SRodney W. GrimesThis 738fae3551SRodney W. Grimescauses 745df42cf4SPhilippe Charnier.Nm 758fae3551SRodney W. Grimesto run the 768fae3551SRodney W. Grimes.Pa /etc/rc 778fae3551SRodney W. Grimesstart up command file in fastboot mode (skipping disk checks). 788fae3551SRodney W. Grimes.Pp 798fae3551SRodney W. GrimesIf the 805df42cf4SPhilippe Charnier.Em console 818fae3551SRodney W. Grimesentry in the 828fae3551SRodney W. Grimes.Xr ttys 5 831681d659SRuslan Ermilovfile is marked 841681d659SRuslan Ermilov.Dq insecure , 858fae3551SRodney W. Grimesthen 865df42cf4SPhilippe Charnier.Nm 871681d659SRuslan Ermilovwill require that the super-user password be 888fae3551SRodney W. Grimesentered before the system will start a single-user shell. 898fae3551SRodney W. GrimesThe password check is skipped if the 905df42cf4SPhilippe Charnier.Em console 911681d659SRuslan Ermilovis marked as 921681d659SRuslan Ermilov.Dq secure . 938fae3551SRodney W. Grimes.Pp 948fae3551SRodney W. GrimesThe kernel runs with four different levels of security. 951681d659SRuslan ErmilovAny super-user process can raise the security level, but only 965df42cf4SPhilippe Charnier.Nm 978fae3551SRodney W. Grimescan lower it. 9838058917SBruce EvansThe security levels are: 998fae3551SRodney W. Grimes.Bl -tag -width flag 1008fae3551SRodney W. Grimes.It Ic -1 10138058917SBruce EvansPermanently insecure mode \- always run the system in level 0 mode. 1026ebaa024SJoseph KoshyThis is the default initial value. 1038fae3551SRodney W. Grimes.It Ic 0 1048fae3551SRodney W. GrimesInsecure mode \- immutable and append-only flags may be turned off. 1058fae3551SRodney W. GrimesAll devices may be read or written subject to their permissions. 1068fae3551SRodney W. Grimes.It Ic 1 10779665533SMike PritchardSecure mode \- the system immutable and system append-only flags may not 10879665533SMike Pritchardbe turned off; 1098fae3551SRodney W. Grimesdisks for mounted filesystems, 1108fae3551SRodney W. Grimes.Pa /dev/mem , 1118fae3551SRodney W. Grimesand 1128fae3551SRodney W. Grimes.Pa /dev/kmem 11338058917SBruce Evansmay not be opened for writing. 1148fae3551SRodney W. Grimes.It Ic 2 11538058917SBruce EvansHighly secure mode \- same as secure mode, plus disks may not be 11638058917SBruce Evansopened for writing (except by 11738058917SBruce Evans.Xr mount 2 ) 11838058917SBruce Evanswhether mounted or not. 1198fae3551SRodney W. GrimesThis level precludes tampering with filesystems by unmounting them, 1208fae3551SRodney W. Grimesbut also inhibits running 1218fae3551SRodney W. Grimes.Xr newfs 8 1228fae3551SRodney W. Grimeswhile the system is multi-user. 12304b2ac6eSGuy Helmer.It Ic 3 12404b2ac6eSGuy HelmerNetwork secure mode \- same as highly secure mode, plus 12504b2ac6eSGuy HelmerIP packet filter rules (see 12604b2ac6eSGuy Helmer.Xr ipfw 8 12704b2ac6eSGuy Helmerand 12804b2ac6eSGuy Helmer.Xr ipfirewall 4 ) 1291681d659SRuslan Ermilovcan not be changed and 1301681d659SRuslan Ermilov.Xr dummynet 4 1311681d659SRuslan Ermilovconfiguration can not be adjusted. 1328fae3551SRodney W. Grimes.El 1338fae3551SRodney W. Grimes.Pp 13438058917SBruce EvansIf the security level is initially -1, then 1355df42cf4SPhilippe Charnier.Nm 13638058917SBruce Evansleaves it unchanged. 13738058917SBruce EvansOtherwise, 1385df42cf4SPhilippe Charnier.Nm 1391681d659SRuslan Ermilovarranges to run the system in level 0 mode while single-user 1401681d659SRuslan Ermilovand in level 1 mode while multi-user. 1411681d659SRuslan ErmilovIf level 2 mode is desired while running multi-user, 1421681d659SRuslan Ermilovit can be set while single-user, e.g., in the startup script 14338058917SBruce Evans.Pa /etc/rc , 1448fae3551SRodney W. Grimesusing 1456ebaa024SJoseph Koshy.Xr sysctl 8 1466ebaa024SJoseph Koshyto set the 1476ebaa024SJoseph Koshy.Dq kern.securelevel 1486ebaa024SJoseph Koshyvariable to the required security level. 1498fae3551SRodney W. Grimes.Pp 1508fae3551SRodney W. GrimesIn multi-user operation, 1515df42cf4SPhilippe Charnier.Nm 1528fae3551SRodney W. Grimesmaintains 1538fae3551SRodney W. Grimesprocesses for the terminal ports found in the file 1548fae3551SRodney W. Grimes.Xr ttys 5 . 1558fae3551SRodney W. Grimes.Nm Init 1568fae3551SRodney W. Grimesreads this file, and executes the command found in the second field. 1578fae3551SRodney W. GrimesThis command is usually 1588fae3551SRodney W. Grimes.Xr getty 8 ; 159edf0e5b3SMike Pritchard.Nm getty 1608fae3551SRodney W. Grimesopens and initializes the tty line 1618fae3551SRodney W. Grimesand 1628fae3551SRodney W. Grimesexecutes the 163edf0e5b3SMike Pritchard.Xr login 1 1648fae3551SRodney W. Grimesprogram. 1658fae3551SRodney W. GrimesThe 166edf0e5b3SMike Pritchard.Nm login 1678fae3551SRodney W. Grimesprogram, when a valid user logs in, 1688fae3551SRodney W. Grimesexecutes a shell for that user. When this shell 1698fae3551SRodney W. Grimesdies, either because the user logged out 1708fae3551SRodney W. Grimesor an abnormal termination occurred (a signal), 1718fae3551SRodney W. Grimesthe 1725df42cf4SPhilippe Charnier.Nm 1738fae3551SRodney W. Grimesprogram wakes up, deletes the user 1748fae3551SRodney W. Grimesfrom the 1758fae3551SRodney W. Grimes.Xr utmp 5 1768fae3551SRodney W. Grimesfile of current users and records the logout in the 177edf0e5b3SMike Pritchard.Xr wtmp 5 1788fae3551SRodney W. Grimesfile. 1798fae3551SRodney W. GrimesThe cycle is 1808fae3551SRodney W. Grimesthen restarted by 1815df42cf4SPhilippe Charnier.Nm 1828fae3551SRodney W. Grimesexecuting a new 183edf0e5b3SMike Pritchard.Nm getty 1848fae3551SRodney W. Grimesfor the line. 1858fae3551SRodney W. Grimes.Pp 1868fae3551SRodney W. GrimesLine status (on, off, secure, getty, or window information) 1878fae3551SRodney W. Grimesmay be changed in the 188edf0e5b3SMike Pritchard.Xr ttys 5 1898fae3551SRodney W. Grimesfile without a reboot by sending the signal 1908fae3551SRodney W. Grimes.Dv SIGHUP 1918fae3551SRodney W. Grimesto 1925df42cf4SPhilippe Charnier.Nm 1938fae3551SRodney W. Grimeswith the command 1948fae3551SRodney W. Grimes.Dq Li "kill -HUP 1" . 1958fae3551SRodney W. GrimesOn receipt of this signal, 1965df42cf4SPhilippe Charnier.Nm 1978fae3551SRodney W. Grimesre-reads the 198edf0e5b3SMike Pritchard.Xr ttys 5 1998fae3551SRodney W. Grimesfile. 2008fae3551SRodney W. GrimesWhen a line is turned off in 201edf0e5b3SMike Pritchard.Xr ttys 5 , 2025df42cf4SPhilippe Charnier.Nm 2038fae3551SRodney W. Grimeswill send a SIGHUP signal to the controlling process 2048fae3551SRodney W. Grimesfor the session associated with the line. 2058fae3551SRodney W. GrimesFor any lines that were previously turned off in the 206edf0e5b3SMike Pritchard.Xr ttys 5 2078fae3551SRodney W. Grimesfile and are now on, 2085df42cf4SPhilippe Charnier.Nm 2098fae3551SRodney W. Grimesexecutes a new 210edf0e5b3SMike Pritchard.Nm getty 2118fae3551SRodney W. Grimesto enable a new login. 2128fae3551SRodney W. GrimesIf the getty or window field for a line is changed, 2138fae3551SRodney W. Grimesthe change takes effect at the end of the current 2148fae3551SRodney W. Grimeslogin session (e.g., the next time 2155df42cf4SPhilippe Charnier.Nm 2168fae3551SRodney W. Grimesstarts a process on the line). 2178fae3551SRodney W. GrimesIf a line is commented out or deleted from 218edf0e5b3SMike Pritchard.Xr ttys 5 , 2195df42cf4SPhilippe Charnier.Nm 2208fae3551SRodney W. Grimeswill not do anything at all to that line. 2218fae3551SRodney W. GrimesHowever, it will complain that the relationship between lines 2228fae3551SRodney W. Grimesin the 223edf0e5b3SMike Pritchard.Xr ttys 5 2248fae3551SRodney W. Grimesfile and records in the 225edf0e5b3SMike Pritchard.Xr utmp 5 2268fae3551SRodney W. Grimesfile is out of sync, 2278fae3551SRodney W. Grimesso this practice is not recommended. 2288fae3551SRodney W. Grimes.Pp 2298fae3551SRodney W. Grimes.Nm Init 2308fae3551SRodney W. Grimeswill terminate multi-user operations and resume single-user mode 2318fae3551SRodney W. Grimesif sent a terminate 2328fae3551SRodney W. Grimes.Pq Dv TERM 2338fae3551SRodney W. Grimessignal, for example, 2348fae3551SRodney W. Grimes.Dq Li "kill \-TERM 1" . 2358fae3551SRodney W. GrimesIf there are processes outstanding that are deadlocked (because of 2368fae3551SRodney W. Grimeshardware or software failure), 2375df42cf4SPhilippe Charnier.Nm 2388fae3551SRodney W. Grimeswill not wait for them all to die (which might take forever), but 2398fae3551SRodney W. Grimeswill time out after 30 seconds and print a warning message. 2408fae3551SRodney W. Grimes.Pp 2418fae3551SRodney W. Grimes.Nm Init 2428fae3551SRodney W. Grimeswill cease creating new 243edf0e5b3SMike Pritchard.Nm getty Ns 's 2448fae3551SRodney W. Grimesand allow the system to slowly die away, if it is sent a terminal stop 2458fae3551SRodney W. Grimes.Pq Dv TSTP 2468fae3551SRodney W. Grimessignal, i.e. 2478fae3551SRodney W. Grimes.Dq Li "kill \-TSTP 1" . 2488fae3551SRodney W. GrimesA later hangup will resume full 2491681d659SRuslan Ermilovmulti-user operations, or a terminate will start a single-user shell. 2508fae3551SRodney W. GrimesThis hook is used by 2518fae3551SRodney W. Grimes.Xr reboot 8 2528fae3551SRodney W. Grimesand 2538fae3551SRodney W. Grimes.Xr halt 8 . 2548fae3551SRodney W. Grimes.Pp 255e460cfd3SNate Williams.Nm Init 256e460cfd3SNate Williamswill terminate all possible processes (again, it will not wait 257e460cfd3SNate Williamsfor deadlocked processes) and reboot the machine if sent the interrupt 258e460cfd3SNate Williams.Pq Dv INT 259e460cfd3SNate Williamssignal, i.e. 260e460cfd3SNate Williams.Dq Li "kill \-INT 1". 261e460cfd3SNate WilliamsThis is useful for shutting the machine down cleanly from inside the kernel 2624f3cac8fSAdam Davidor from X when the machine appears to be hung. 263e460cfd3SNate Williams.Pp 264a0a549c7SRuslan Ermilov.Nm Init 2651681d659SRuslan Ermilovwill do the same, except it will halt the machine if sent 266a0a549c7SRuslan Ermilovthe user defined signal 1 267a0a549c7SRuslan Ermilov.Pq Dv USR1 , 2681681d659SRuslan Ermilovor will halt and turn the power off (if hardware permits) if sent 269a0a549c7SRuslan Ermilovthe user defined signal 2 270a0a549c7SRuslan Ermilov.Pq Dv USR2 . 271a0a549c7SRuslan Ermilov.Pp 2726ebaa024SJoseph KoshyWhen shutting down the machine, 2735df42cf4SPhilippe Charnier.Nm 2748889c700SDavid Nugentwill try to run the 2758889c700SDavid Nugent.Pa /etc/rc.shutdown 2768889c700SDavid Nugentscript. This script can be used to cleanly terminate specific programs such 2778889c700SDavid Nugentas 2788889c700SDavid Nugent.Nm innd 2798889c700SDavid Nugent(the InterNetNews server). 2808889c700SDavid Nugent.Pp 2818fae3551SRodney W. GrimesThe role of 2825df42cf4SPhilippe Charnier.Nm 2838fae3551SRodney W. Grimesis so critical that if it dies, the system will reboot itself 2848fae3551SRodney W. Grimesautomatically. 2858fae3551SRodney W. GrimesIf, at bootstrap time, the 2865df42cf4SPhilippe Charnier.Nm 2878fae3551SRodney W. Grimesprocess cannot be located, the system will panic with the message 2881681d659SRuslan Ermilov.Dq "panic: init died (signal %d, exit %d)" . 2891681d659SRuslan Ermilov.Pp 2901681d659SRuslan ErmilovThe second synopsis form is only available if 2911681d659SRuslan Ermilov.Nm 2921681d659SRuslan Ermilovwas compiled with the 2931681d659SRuslan Ermilov.Em COMPAT_SYSV_INIT 2941681d659SRuslan Ermilovoption. 2951681d659SRuslan ErmilovIn this case, 2961681d659SRuslan Ermilov.Nm 2971681d659SRuslan Ermilovwill emulate 2981681d659SRuslan Ermilov.At V 2991681d659SRuslan Ermilovbehavior, i.e. super-user can specify the desired 3001681d659SRuslan Ermilov.Em run-level 3011681d659SRuslan Ermilovon a command line, and 3021681d659SRuslan Ermilov.Nm 3031681d659SRuslan Ermilovwill signal the original 3041681d659SRuslan Ermilov.Pq PID 1 3051681d659SRuslan Ermilov.Nm 3061681d659SRuslan Ermilovas follows: 3071681d659SRuslan Ermilov.Bl -column Run-level SIGTERM 3081681d659SRuslan Ermilov.It Sy Run-level Signal Action 3091681d659SRuslan Ermilov.It Cm 0 Ta Dv SIGUSR2 Ta "Halt and turn the power off" 3101681d659SRuslan Ermilov.It Cm 1 Ta Dv SIGTERM Ta "Go to single-user mode" 3111681d659SRuslan Ermilov.It Cm 6 Ta Dv SIGINT Ta "Reboot the machine" 3121681d659SRuslan Ermilov.It Cm c Ta Dv SIGTSTP Ta "Block further logins" 3131681d659SRuslan Ermilov.It Cm q Ta Dv SIGHUP Ta Rescan the 3141681d659SRuslan Ermilov.Xr ttys 5 3151681d659SRuslan Ermilovfile 3161681d659SRuslan Ermilov.El 3178fae3551SRodney W. Grimes.Sh DIAGNOSTICS 3188fae3551SRodney W. Grimes.Bl -diag 3198fae3551SRodney W. Grimes.It "getty repeating too quickly on port %s, sleeping" 3208fae3551SRodney W. GrimesA process being started to service a line is exiting quickly 3218fae3551SRodney W. Grimeseach time it is started. 3228fae3551SRodney W. GrimesThis is often caused by a ringing or noisy terminal line. 3231681d659SRuslan Ermilov.Em "Init will sleep for 30 seconds" , 3248fae3551SRodney W. Grimes.Em "then continue trying to start the process" . 3258fae3551SRodney W. Grimes.Pp 3268fae3551SRodney W. Grimes.It "some processes would not die; ps axl advised." 3278fae3551SRodney W. GrimesA process 3288fae3551SRodney W. Grimesis hung and could not be killed when the system was shutting down. 3298fae3551SRodney W. GrimesThis condition is usually caused by a process 3308fae3551SRodney W. Grimesthat is stuck in a device driver because of 3318fae3551SRodney W. Grimesa persistent device error condition. 3328fae3551SRodney W. Grimes.El 3338fae3551SRodney W. Grimes.Sh FILES 334a0a549c7SRuslan Ermilov.Bl -tag -width /etc/rc.shutdown -compact 3358fae3551SRodney W. Grimes.It Pa /dev/console 3365df42cf4SPhilippe Charniersystem console device 3378fae3551SRodney W. Grimes.It Pa /dev/tty* 3385df42cf4SPhilippe Charnierterminal ports found in 3395df42cf4SPhilippe Charnier.Xr ttys 5 3408fae3551SRodney W. Grimes.It Pa /var/run/utmp 3415df42cf4SPhilippe Charnierrecord of current users on the system 3428fae3551SRodney W. Grimes.It Pa /var/log/wtmp 3435df42cf4SPhilippe Charnierrecord of all logins and logouts 3448fae3551SRodney W. Grimes.It Pa /etc/ttys 3455df42cf4SPhilippe Charnierthe terminal initialization information file 3468fae3551SRodney W. Grimes.It Pa /etc/rc 3475df42cf4SPhilippe Charniersystem startup commands 3488889c700SDavid Nugent.It Pa /etc/rc.shutdown 3495df42cf4SPhilippe Charniersystem shutdown commands 3508fae3551SRodney W. Grimes.El 3518fae3551SRodney W. Grimes.Sh SEE ALSO 3528fae3551SRodney W. Grimes.Xr kill 1 , 353af202156SWolfram Schneider.Xr login 1 , 3548fae3551SRodney W. Grimes.Xr sh 1 , 3551681d659SRuslan Ermilov.Xr dummynet 4 , 35604b2ac6eSGuy Helmer.Xr ipfirewall 4 , 3578fae3551SRodney W. Grimes.Xr ttys 5 , 3588fae3551SRodney W. Grimes.Xr crash 8 , 3598fae3551SRodney W. Grimes.Xr getty 8 , 360af202156SWolfram Schneider.Xr halt 8 , 36104b2ac6eSGuy Helmer.Xr ipfw 8 , 3628fae3551SRodney W. Grimes.Xr rc 8 , 3638fae3551SRodney W. Grimes.Xr reboot 8 , 3646ebaa024SJoseph Koshy.Xr shutdown 8 , 3656ebaa024SJoseph Koshy.Xr sysctl 8 3668fae3551SRodney W. Grimes.Sh HISTORY 367a0a549c7SRuslan ErmilovAn 3688fae3551SRodney W. Grimes.Nm 3698fae3551SRodney W. Grimescommand appeared in 3708fae3551SRodney W. Grimes.At v6 . 3716ebaa024SJoseph Koshy.Sh CAVEATS 3728fae3551SRodney W. GrimesSystems without 3738fae3551SRodney W. Grimes.Xr sysctl 3748fae3551SRodney W. Grimesbehave as though they have security level \-1. 3756ebaa024SJoseph Koshy.Pp 37604b2ac6eSGuy HelmerSetting the security level above 1 too early in the boot sequence can 3776ebaa024SJoseph Koshyprevent 3786ebaa024SJoseph Koshy.Xr fsck 8 3796ebaa024SJoseph Koshyfrom repairing inconsistent filesystems. The 3806ebaa024SJoseph Koshypreferred location to set the security level is at the end of 3816ebaa024SJoseph Koshy.Pa /etc/rc 3826ebaa024SJoseph Koshyafter all multi-user startup actions are complete. 383