You are not logged in.

#1 2016-05-18 18:22:26

EdeWolf
Member
Registered: 2016-01-06
Posts: 79

[solved] finding the cause for the start of static unit files

In my ever ongoing quest to understand systemd booting and noting, that alsa-restore is a static service, I am wondering, how can I find out, what other unit made this service start?

# cd /usr/lib/systemd/system
# grep -ir 'alsa-restore' *.target
# grep -ir 'alsa-restore' *.service
# 

Nothing here, that would pull in alsa-restore. So, what does actually start it? Or rather, more in general, how can I find out, what loaded static service has been started by what other unit as a dependency? Kind of looking for a reverse dependency tree for service foo.

Last edited by EdeWolf (2016-05-18 21:02:54)

Offline

#2 2016-05-18 18:33:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] finding the cause for the start of static unit files

Not a Sysadmin issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-05-18 18:59:45

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,865
Website

Re: [solved] finding the cause for the start of static unit files

EdeWolf wrote:

In my ever ongoing quest to understand systemd booting and noting, that alsa-restore is a static service, I am wondering, how can I find out, what other unit made this service start?

# cd /usr/lib/systemd/system
# grep -ir 'alsa-restore' *.target
# grep -ir 'alsa-restore' *.service
# 

Nothing here, that would pull in alsa-restore. So, what does actually start it? Or rather, more in general, how can I find out, what loaded static service has been started by what other unit as a dependency? Kind of looking for a reverse dependency tree for service foo.

You mean like 'systemctl list-dependencies --reverse'?

man systemctl

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2016-05-18 21:02:40

EdeWolf
Member
Registered: 2016-01-06
Posts: 79

Re: [solved] finding the cause for the start of static unit files

Thanks for answering, thats it!

Offline

Board footer

Powered by FluxBB