Linux/systemd: Set default runlevel to console

Hi,

for server systems it isn’t necessary to start a graphical user interface because they usually run headless.

Pre systemd system set their default (init) runlevel in /etc/inittab. For the most linux distributions the runlevel for text console/non graphical login was 3.

Systemd introduces target concept. If you host want to boot to text console set the default target to multi-user:

root@debdev ~ # systemctl get-default
graphical.target
root@debdev ~ # systemctl set-default multi-user.target
root@debdev ~ # systemctl get-default
multi-user.target

Michael

Leave a Reply