Skip to main content
Bumped by Community user
edited tags
Link
Kusalananda
  • 356.1k
  • 42
  • 737
  • 1.1k
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Source Link
Maciek
  • 303
  • 1
  • 3
  • 8

systemd unit indirect status

I wonder how can I check which unit activates another with status indirect?

I run Arch with Gnome and a Debian server. On my Debian machine I can see that output for systemctl list-unit-files --type=target --state=enabled shows, as expected:

default.target enabled multi-user.target enabled 

But on Arch desktop, surprisingly for me, it doesn't, although both: multi-user.target and graphical.target (my default on arch) are active. When I check the status of these units files they are both: indirect. When I list-dependencies for graphical.target it shows gdm.service and multi-user.target. In gdm unit file I do not see Also= in [Install] section. So what exactly activates graphical.target?

What is the reason of this "indirect" solution?