Change Run-Level2025/08/12 |
If you would like to change System Run-Level, set like follows. |
|
[1] | Run-Level is set with linking to [default.target]. For example, the default setting with Graphical-Login is set like follows. |
root@dlp:~#
systemctl get-default graphical.target
root@dlp:~#
root@dlp:~# ll /usr/lib/systemd/system/default.target lrwxrwxrwx 1 root root 16 Jun 25 21:40 /usr/lib/systemd/system/default.target -> graphical.target ll /lib/systemd/system/graphical.target -rw-r--r-- 1 root root 606 Jun 25 21:36 /lib/systemd/system/graphical.target |
[2] | For example, if you'd like to change Run-Level to Text-Login, set like follows. On Debian based System, Graphical-Login is enabled automatically when installing Desktop Environment packages, however if you'd like to disable Graphical-Login by default, specify [multi-user.target]. |
root@dlp:~#
systemctl set-default multi-user.target Created symlink /etc/systemd/system/default.target → /lib/systemd/system/multi-user.target.
root@dlp:~#
root@dlp:~# systemctl get-default multi-user.target ll /etc/systemd/system/default.target lrwxrwxrwx 1 root root 41 Aug 12 10:28 /etc/systemd/system/default.target -> /usr/lib/systemd/system/multi-user.target |
|