removed
[ikiwiki.git] / docs / handbook / handbook-boot-init.mdwn
CommitLineData
ce8400b8 1
2
3
4## 7.5 Init: Process Control Initialization
5
6
7
8Once the kernel has finished booting, it passes control to the user process [init(8)](http://leaf.dragonflybsd.org/cgi/web-man?command=init&section=8), which is located at `/sbin/init`, or the program path specified in the `init_path` variable in `loader`.
9
10
11
12### 7.5.1 Automatic Reboot Sequence
13
14
15
16The automatic reboot sequence makes sure that the file systems available on the system are consistent. If they are not, and [fsck(8)](http://leaf.dragonflybsd.org/cgi/web-man?command=fsck&section=8) cannot fix the inconsistencies, [init(8)](http://leaf.dragonflybsd.org/cgi/web-man?command=init&section=8) drops the system into [single-user mode](boot-init.html#BOOT-SINGLEUSER) for the system administrator to take care of the problems directly.
17
18
19
20### 7.5.2 Single-User Mode
21
22
23
24This mode can be reached through the [automatic reboot sequence](boot-init.html#BOOT-AUTOREBOOT), or by the user booting with the `-s` option or setting the `boot_single` variable in `loader`.
25
26
27
28It can also be reached by calling [shutdown(8)](http://leaf.dragonflybsd.org/cgi/web-man?command=shutdown&section=8) without the reboot (`-r`) or halt (`-h`) options, from [multi-user mode](boot-init.html#BOOT-MULTIUSER).
29
30
31
32If the system `console` is set to `insecure` in `/etc/ttys`, then the system prompts for the `root` password before initiating single-user mode.
33
34
35
36***'Example 7-3. An Insecure Console in `/etc/ttys`***'
37
38
39
40
41
42 # name getty type status comments
43
44 #
45
46 # If console is marked "insecure", then init will ask for the root password
47
48 # when going to single-user mode.
49
50 console none unknown off insecure
51
52
53
54
55
56 **Note:** An `insecure` console means that you consider your physical security to the console to be insecure, and want to make sure only someone who knows the `root` password may use single-user mode, and it does not mean that you want to run your console insecurely. Thus, if you want security, choose `insecure`, not `secure`.
57
58
59
60### 7.5.3 Multi-User Mode
61
62
63
64If [init(8)](http://leaf.dragonflybsd.org/cgi/web-man?command=init&section=8) finds your file systems to be in order, or once the user has finished in [single-user mode](boot-init.html#BOOT-SINGLEUSER), the system enters multi-user mode, in which it starts the resource configuration of the system.
65
66
67
68#### 7.5.3.1 Resource Configuration (rc)
69
70
71
72The resource configuration system reads in configuration defaults from `/etc/defaults/rc.conf`, and system-specific details from `/etc/rc.conf`, and then proceeds to mount the system file systems mentioned in `/etc/fstab`, start up networking services, start up miscellaneous system daemons, and finally runs the startup scripts of locally installed packages.
73
74
75
76The [rc(8)](http://leaf.dragonflybsd.org/cgi/web-man?command=rc&section=8) manual page is a good reference to the resource configuration system, as is examining the scripts themselves.
77
78
79
80
81
82
83
84CategoryHandbook
85
86CategoryHandbook-booting
87