runlevel & target
runlevel is specific to Sys V init process. The SysV init runlevel system provides a standard process for controlling which programs init launches or halts when initializing a runlevel. SysV init was chosen because it is easier to use and more flexible than the Traditional BSD-style init process (Before RHEL 7 RedHat). As of RHEL 7 onwards, the SysVinit system has been replaced in favor of systemd. The systemd init daemon is the system and service manager. The systemd init daemon does not support runlevel the way Sys V init did. It uses target unit instead, which works like runlevel but differently.
target unit plays a role like the the role played by Sys V init runlevel . The distinguish between them is systemd int daemon can activate more than one target at a time. In other words, it allows the system running in more than one "runlevels". Sys V init only allows the system running in a single runlevel at a time.
*runlevel vstarget unit*
Sys V Init runlevel | systemd target unit 2 | Function&Description |
---|---|---|
0 | runlevel0.target -> poweroff.target | Text |
1 or S | runlevel1.target -> rescure.target | Text |
2, 3, 4 | runlevel2.target, runlevel3.target, runlevel4.target -> poweroff.target | Text |
5 | runlevel5.target -> graphical.target | Text |
6 | runlevel6.target -> reboot.target | Text |
emergency.target | Text |
Default target
Controlling targets
systemd
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。