Re: [systemd-devel] How to stop child cgroup caused by PAMName=

2025-02-07 Thread Windl, Ulrich
Cc: systemd-devel@lists.freedesktop.org > Subject: [EXT] Re: [systemd-devel] How to stop child cgroup caused by > PAMName= > > Hi, > > The hint with the 'KillUserProcesses' setting was exactly what I needed. > We indeed use a distro which is setting this to 'no&

Re: [systemd-devel] How to stop child cgroup caused by PAMName=

2025-02-07 Thread Dluhosch, Michael
ctl. This is exactly the clean solution I was looking for. Thanks and Kind Regards, Michael -Original Message- From: Lennart Poettering Sent: Thursday, February 6, 2025 4:01 PM To: Dluhosch, Michael Cc: systemd-devel@lists.freedesktop.org Subject: Re: [systemd-devel] How to stop child cg

Re: [systemd-devel] How to stop child cgroup caused by PAMName=

2025-02-06 Thread Mantas Mikulėnas
; > Michael > > > > > > *From:* Mantas Mikulėnas > *Sent:* Thursday, February 6, 2025 11:41 AM > *To:* Dluhosch, Michael > *Cc:* systemd-devel@lists.freedesktop.org > *Subject:* Re: [systemd-devel] How to stop child cgroup caused by PAMName= > > > > On

Re: [systemd-devel] How to stop child cgroup caused by PAMName=

2025-02-06 Thread Lennart Poettering
On Do, 06.02.25 08:25, Dluhosch, Michael (michael.dluho...@airbus.com) wrote: > Hello, > > > I want a service which executes 'startFoo.sh' exactly like a user 'Foo' would > experience it. This is my current approach: > > [Service] > ExecStart=/usr/bin/startFoo.sh > > User=Foo > > PAMName=login >

Re: [systemd-devel] How to stop child cgroup caused by PAMName=

2025-02-06 Thread Dluhosch, Michael
: Dluhosch, Michael Cc: systemd-devel@lists.freedesktop.org Subject: Re: [systemd-devel] How to stop child cgroup caused by PAMName= On Thu, Feb 6, 2025 at 10:29 AM Dluhosch, Michael mailto:michael.dluho...@airbus.com>> wrote: Hello, I want a service which executes 'startFoo.sh'

Re: [systemd-devel] How to stop child cgroup caused by PAMName=

2025-02-06 Thread Mantas Mikulėnas
On Thu, Feb 6, 2025 at 10:29 AM Dluhosch, Michael < michael.dluho...@airbus.com> wrote: > Hello, > > > I want a service which executes 'startFoo.sh' exactly like a user 'Foo' > would experience it. This is my current approach: > > [Service] > ExecStart=/usr/bin/startFoo.sh > > User=Foo > > PAMName

Re: [systemd-devel] How to stop child cgroup caused by PAMName=

2025-02-06 Thread Tomasz Pala
On Thu, Feb 06, 2025 at 08:25:06 +, Dluhosch, Michael wrote: > PAMName=login [...] > ExecStop=/usr/bin/stopFoo.sh > > to the main service which does that: > > #!/bin/bash Don't use bash for scripts. > systemctl stop $(systemctl status $(pidof > ) | grep user.*slice | grep -o > session.*s

[systemd-devel] How to stop child cgroup caused by PAMName=

2025-02-06 Thread Dluhosch, Michael
Hello, I want a service which executes 'startFoo.sh' exactly like a user 'Foo' would experience it. This is my current approach: [Service] ExecStart=/usr/bin/startFoo.sh User=Foo PAMName=login And it seems to work just fine. But I can't figure out how to stop this service and all of its ch