You are not logged in.

#1 2016-09-17 17:11:38

Maniaxx
Member
Registered: 2014-05-14
Posts: 738

[SOLVED] How to identify systemd unit by name (from journalctl)

Hallo,
i have a 'pulseaudio' process running that when killed gets respawned again immediately. When i look into 'journalctl' it shows this:

Sep 17 18:39:11 host systemd[344]: Starting Sound Service...
Sep 17 18:39:11 host systemd[344]: Started Sound Service.
Sep 17 18:39:11 host rtkit-daemon[491]: Successfully made thread 4060 of process 4060 (/usr/bin/pulseaudio) owned by '10
Sep 17 18:39:11 host rtkit-daemon[491]: Supervising 1 threads of 1 processes of 1 users.

Now i've looked up 'systemctl list-unit-files' and 'systemctl list-units' but cannot find anything related to 'Sound Service'. I guess that's defined as variable (Description=) in the unit file itself.
How can i identify the unit file by that name in journalctl?

Edit: Gets even weirder... When looking at 'systemctl status' i can clearly see a 'pulseaudio.service' but when i do a 'systemctl status pulseaudio.service' it says "Unit pulseaudio.service could not be found.". It is there and it is running but i cannot access it?

Last edited by Maniaxx (2016-09-17 19:44:20)


sys2064

Offline

#2 2016-09-17 17:44:07

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] How to identify systemd unit by name (from journalctl)

You need to pass the --user switch to systemctl to see this user unit listed. If it was the system service manager that started this sound service, you would have seen pid 1 instead of 344 inside the brackets.

Also check the wiki: https://wiki.archlinux.org/index.php/PulseAudio#Running

Offline

#3 2016-09-17 17:58:06

Maniaxx
Member
Registered: 2014-05-14
Posts: 738

Re: [SOLVED] How to identify systemd unit by name (from journalctl)

So 'systemctl status' shows both (system and user), appending/adding a unit results in 'system' only (if not explicitly defined).
Not very intuitive but maybe its just me...

Thanks.

Last edited by Maniaxx (2016-09-17 17:58:30)


sys2064

Offline

#4 2016-09-17 18:41:02

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] How to identify systemd unit by name (from journalctl)

Well, `systemctl status` shows the whole system status (cgroup hierarchy) and the user slices also show up there (as a subtree of the system) with the user services contained in the slices. The --user switch still applies to limit the output to your user's slice.

Offline

#5 2016-09-17 19:42:38

Maniaxx
Member
Registered: 2014-05-14
Posts: 738

Re: [SOLVED] How to identify systemd unit by name (from journalctl)

Yes, but the other way round is confusing (systemctl status <user unit>). That doesn't work unless specified explicitly with '--user'. They should have made that globally (show both) as well in my opinion.


sys2064

Offline

#6 2016-09-17 21:55:56

Kromes
Member
Registered: 2016-09-09
Posts: 21

Re: [SOLVED] How to identify systemd unit by name (from journalctl)

While not related to your problem, pulseaudio is probably what gets you sound on your install. Keeping it running is probably a good idea, though I obviously know nothing about your system/level of expertise.

Offline

#7 2016-09-18 00:32:58

Maniaxx
Member
Registered: 2014-05-14
Posts: 738

Re: [SOLVED] How to identify systemd unit by name (from journalctl)

That's fine. I'm using ALSA and want to drop PA on purpose.


sys2064

Offline

Board footer

Powered by FluxBB