runlevels

runlevels


Systemd targetRunlevelDescriptionOld commandNew command
runlevel0.target, poweroff.target0Power off the Linux box.init 0systemctl isolate poweroff.target
runlevel1.target, rescue.target1Boot into emergency rescue mode (single user mode).init 1systemctl isolate rescue.target
runlevel2.target, multi-user.target2Text based multi-user system that does not configure network interfaces and does not export networks services.init 2systemctl isolate runlevel2.target
runlevel3.target, multi-user.target3Starts the system normally in multi-user text mode for the Linux server usage.init 3systemctl isolate runlevel3.target
runlevel4.target, multi-user.target4For special purposes text mode.init 4systemctl isolate runlevel4.target
runlevel5.target, graphical.target5Same as runlevel 3 and boot into GUI display manager.init 5systemctl isolate graphical.target
runlevel6.target, reboot.target6Reboot the Linux desktop or laptop.init 5systemctl 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

Содержание