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

Advertisment to support michlstechblog.info

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.