LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-19-2021, 11:01 AM   #1
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Rep: Reputation: 61
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?
 
Old 02-19-2021, 11:21 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
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

Last edited by shruggy; 02-19-2021 at 11:34 AM.
 
Old 02-19-2021, 11:33 AM   #3
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by bradvan View Post
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

Last edited by jsbjsb001; 02-19-2021 at 10:05 PM. Reason: wrong word
 
1 members found this post helpful.
Old 02-23-2021, 10:17 AM   #4
bradvan
Member
 
Registered: Mar 2009
Posts: 367

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation (Linux) RISCV GNU Toolchain error: C compiler cannot create executables, recipe for target 'configure-target-libgomp' failed riscv Linux - Newbie 2 03-23-2017 08:36 AM
LXer: systemd 230 Launches with DNSSEC Enabled by Default in systemd-resolved LXer Syndicated Linux News 0 05-22-2016 11:41 AM
How do I find the target directory (not the target fs) of a mount -bind raananh Linux - Newbie 2 01-13-2013 09:18 AM
iptables: rule with RETURN target just after a rule with ACCEPT target Nerox Linux - Networking 6 09-04-2011 03:33 PM
Making a symlink follow its target when the target moves pwabrahams Linux - Software 3 03-08-2011 07:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration