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&
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
;
> 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
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
>
: 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'
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
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
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