Put in remaining pages and wiki contents.
[ikiwiki.git] / docs / handbook / handbook-boot-init.mdwn
1 \r
2 \r
3 ## 7.5 Init: Process Control Initialization \r
4 \r
5 Once the kernel has finished booting, it passes control to the user process [init(8)](http://leaf.dragonflybsd.org/cgi/web-man?command#init&section8), which is located at `/sbin/init`, or the program path specified in the `init_path` variable in `loader`.\r
6 \r
7 ### 7.5.1 Automatic Reboot Sequence \r
8 \r
9 The 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&section8) 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.\r
10 \r
11 ### 7.5.2 Single-User Mode \r
12 \r
13 This 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`.\r
14 \r
15 It can also be reached by calling [shutdown(8)](http://leaf.dragonflybsd.org/cgi/web-man?command#shutdown&section8) without the reboot (`-r`) or halt (`-h`) options, from [multi-user mode](boot-init.html#BOOT-MULTIUSER).\r
16 \r
17 If the system `console` is set to `insecure` in `/etc/ttys`, then the system prompts for the `root` password before initiating single-user mode.\r
18 \r
19 ***'Example 7-3. An Insecure Console in `/etc/ttys`***'\r
20 \r
21     \r
22     # name  getty                           type    status          comments\r
23     #\r
24     # If console is marked "insecure", then init will ask for the root password\r
25     # when going to single-user mode.\r
26     console none                            unknown off insecure\r
27 \r
28 \r
29  **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`.\r
30 \r
31 ### 7.5.3 Multi-User Mode \r
32 \r
33 If [init(8)](http://leaf.dragonflybsd.org/cgi/web-man?command#init&section8) 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.\r
34 \r
35 #### 7.5.3.1 Resource Configuration (rc) \r
36 \r
37 The 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.\r
38 \r
39 The [rc(8)](http://leaf.dragonflybsd.org/cgi/web-man?command#rc&section8) manual page is a good reference to the resource configuration system, as is examining the scripts themselves.\r
40 \r
41 \r
42 \r
43 CategoryHandbook\r
44 CategoryHandbook-booting\r