You are not logged in.

#1 2016-06-09 11:46:13

frank
Member
From: Karlsruhe/Germany
Registered: 2014-02-06
Posts: 8

[SOLVED] systemd-logind: override "KillUserProcesses" via drop-in?

Hi everyone,

Arch's systemd is build with '--without-kill-user-processes', so the KillUserProcesses property for systemd-logind is set to false by default.

I want to override this property with a drop-in .conf file (see https://www.freedesktop.org/software/sy … onf.d.html ):

So I created /etc/systemd/logind.conf.d/killuserprocesses.conf:

[Login]
KillUserProcesses=true

But it doesn't work. I don't see the property in the output of systemctl show systemd-logind whether it's overridden or not.
I don't even see it when I remove the whole drop-in folder.

Does anybody else had this problem?

Thanks for any hint!

Edit: marked as solved.

Last edited by frank (2016-06-09 14:59:54)

Offline

#2 2016-06-09 12:19:20

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

Re: [SOLVED] systemd-logind: override "KillUserProcesses" via drop-in?

`systemctl show` shows the properties of the unit. For comparison: you won't be able to see configuration data from sshd_config with `systemctl show sshd.service`.

You can check the value of the property via dbus (not sure if there's an easier way):

$ busctl get-property org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager KillUserProcesses

Last edited by Raynman (2016-06-09 12:19:35)

Offline

#3 2016-06-09 14:57:52

frank
Member
From: Karlsruhe/Germany
Registered: 2014-02-06
Posts: 8

Re: [SOLVED] systemd-logind: override "KillUserProcesses" via drop-in?

Ups, now that makes sense.
It works, thanks for the explanation!

Offline

Board footer

Powered by FluxBB