LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   systemd default target (https://www.linuxquestions.org/questions/linux-server-73/systemd-default-target-4175690810/)

bradvan 02-19-2021 11:01 AM

systemd default target
 
On our CentOS 7 servers, we do not install a graphical interface. I recently checked and the default target is linked to graphical.target instead of multi-user.target. Just wondering if this might cause any issues?

shruggy 02-19-2021 11:21 AM

This is what I have:
Code:

$ cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
$
readlink /usr/lib/systemd/system/default.target
graphical.target
$
readlink /etc/systemd/system/default.target
/lib/systemd/system/multi-user.target

Settings in /etc/systemd override settings in /usr/lib/systemd.

What counts in the end is
Code:

systemctl get-default

jsbjsb001 02-19-2021 11:33 AM

Quote:

Originally Posted by bradvan (Post 6222174)
On our CentOS 7 servers, we do not install a graphical interface. I recently checked and the default target is linked to graphical.target instead of multi-user.target. Just wondering if this might cause any issues?

I'd assume it's going to try and load a graphical environment of some sort, but since you haven't got one installed; it's only option would be to fall back to the console.

In any case, you can quite easily change the default target for systemd as described in the link below.

https://wiki.archlinux.org/index.php...t_to_boot_into

bradvan 02-23-2021 10:17 AM

I'll work on changing the default target to multi-user. It does not appear that this is causing any issues. Thanks!


All times are GMT -5. The time now is 01:43 PM.