runlevels
Systemd target | Runlevel | Description | Old command | New command |
---|
runlevel0.target, poweroff.target | 0 | Power off the Linux box. | init 0 | systemctl isolate poweroff.target |
runlevel1.target, rescue.target | 1 | Boot into emergency rescue mode (single user mode). | init 1 | systemctl isolate rescue.target |
runlevel2.target, multi-user.target | 2 | Text based multi-user system that does not configure network interfaces and does not export networks services. | init 2 | systemctl isolate runlevel2.target |
runlevel3.target, multi-user.target | 3 | Starts the system normally in multi-user text mode for the Linux server usage. | init 3 | systemctl isolate runlevel3.target |
runlevel4.target, multi-user.target | 4 | For special purposes text mode. | init 4 | systemctl isolate runlevel4.target |
runlevel5.target, graphical.target | 5 | Same as runlevel 3 and boot into GUI display manager. | init 5 | systemctl isolate graphical.target |
runlevel6.target, reboot.target | 6 | Reboot the Linux desktop or laptop. | init 5 | systemctl isolate reboot.target |
### get current runlevel
# systemctl
systemctl get-default
# hand
ls -lah /etc/systemd/system/default.target
### set other (graphical for example) runlevel for next reboot
# systemctl
systemctl set-default graphical.target
# hand
ln -s -f -v /usr/lib/systemd/system/graphical.target /etc/systemd/system/default.target
Содержание