일단 커널이 부팅을 완료하면 init라는 사용자 프로세스로 제어권을 넘깁니다. 이것은 /sbin/init에 위치하고 있으며, loader에서 init_path를 설정함으로써 이 프로그램의 경로를 설정할 수 있습니다.
Once the kernel has finished booting, it passes control to the user process init, which is located at /sbin/init, or the program path specified in the init_path variable in loader.
자동 리부팅 과정에서는 시스템에 있는 파일시스템들이 일관적인지를 확인합니다. 만약 그렇지 않고, fsck로 이러한 문제를 해결할 수 없다면 init는 시스템을 단일 사용자 모드로 전환합니다. 여기서 시스템 관리자는 문제를 바로 검사해볼 수 있습니다.
The automatic reboot sequence makes sure that the filesystems available on the system are consistent. If they are not, and fsck can not fix the inconsistencies, init drops the system into single-user mode for the system administrator to take care of the problems directly.
이 모드는 자동 리부팅 과정을 통해서 들어오거나 사용자가 부팅시에 -s 옵션을 주었을 때, 또는 loader내의 boot_single변수를 세팅하였을 때 들어오게 됩니다.
This mode can be reached through the automatic reboot sequence, or by the user booting with the -s or setting the boot_single variable in loader.
또한, shutdown에서 리부트를 하지 않거나( -r옵션) halt(-h옵션)를 다중 사용자 모드에서 수행시킬 때에도 이 모드로 들어오게 됩니다.
It can also be reached by calling shutdown without the reboot (-r) or halt (-h) options, from multi-user mode.
시스템 콘솔인 console이 /etc/ttys에서 insecure로 지정되어 있다면, 단일 사용자 모드로 들어가기 전에 root패스워드를 물어올 것입니다.
If the system console console is set to insecure in /etc/ttys, then the system prompts for the root password before initiating single-user mode.
Example 5-3. /etc/ttys에 있는 비 보안 콘솔 : insecure console in /etc/ttys
# name getty type status comments
#
# This entry needed for asking password when init goes to single-user mode
# If you want to be asked for password, change "secure" to "insecure" here
console none unknown off insecureNote: 비 보안콘솔은 해당 콘솔에 들어오는 과정에 물리적인 보안 장치가 없으며, 루트 패스워드를 알고 있는 사람만이 단일 사용자 모드로 들어갈 수 있도록 하는 콘솔을 의미합니다. 콘솔이 안전하지 않은 상태에서 운영된단ㄴ 것을 의미하는 것은 아닙니다. 그러므로, 보안을 원한다면, secure대신 insecure 을 사용하십시오.
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.
만약 init가 정렬되어 있다는 것을 감지하거나 사용자가 한번 단일 사용자 모드로 들어왔었다는 사실을 알게 되면 시스템은 다중 사용자 모드로 들어갑니다. 다중 사용자 모드는 시스템의 자원 설정 기능을 시작합니다.
If init finds your filesystems to be in order, or once the user has finished in single-user mode, the system enters multi-user mode, in which it starts the resource configuration of the system.
자원 설정 시스템은 기본 설정을 /etc/defaults/rc.conf 으로부터 읽어오고, 시스템에 특정한 설정들은 /etc/rc.conf으로부터 읽어옵니다. 그리고 /etc/fstab에 언급된 파일시스템들을 마운트하고, 네트워크 서비스를 시작합니다. 그리고 마지막으로 로컬에 설치되어 있는 패키지들의 시작 스크립트를 수행시킵니다.
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 filesystems mentioned in /etc/fstab, start up networking services, starts up miscellaneous system daemons, and finally runs the startup scripts of locally installed packages.
자원 설정 시스템에 대한 내용을 참조하려면 rc(8)을 보세요. 스크립트 자체도 좋은 예시입니다.
rc(8) is a good reference to the resource configuration system, as is examining the scripts themselves.