XK0-004 · Question #64
Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)
The correct answer is A. 0 E. 6. SysV init run levels 0 (halt) and 6 (reboot) must never be set as the default run level because they immediately terminate or restart the system, making it unbootable for normal use.
Question
Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)
Options
- A0
- B1
- C3
- D5
- E6
How the community answered
(21 responses)- A90% (19)
- B5% (1)
- C5% (1)
Why each option
SysV init run levels 0 (halt) and 6 (reboot) must never be set as the default run level because they immediately terminate or restart the system, making it unbootable for normal use.
Run level 0 is defined as system halt - setting it as the default would cause the machine to shut down immediately upon reaching init, making the system inoperable.
Run level 1 is single-user/maintenance mode, which is restrictive but valid as a temporary default for recovery purposes.
Run level 3 is a normal multi-user mode without a graphical interface, which is a common and safe default run level.
Run level 5 is multi-user mode with a graphical interface, also a common and safe default run level.
Run level 6 is defined as system reboot - setting it as the default would cause an infinite reboot loop as the system restarts before fully initializing.
Concept tested: SysV init run level definitions and restrictions
Source: https://refspecs.linuxbase.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/runlevels.html
Topics
Community Discussion
No community discussion yet for this question.