Re: [systemd-devel] Antw: Re: Antw: [EXT] Re: Q: Change a kernel setting

2022-07-29 Thread Thomas HUMMEL
On 29/07/2022 12:34, Ulrich Windl wrote: Hello, thanks for your answer Did you try ConditionPathExists= in the Unit? No but wouldn't the non existence of the file make the job start to fail ? Besides, (see in my post) the error message the service logged was a permission denied. I agre

[systemd-devel] Antw: Re: Antw: [EXT] Re: Q: Change a kernel setting

2022-07-29 Thread Ulrich Windl
>>> Thomas HUMMEL schrieb am 29.07.2022 um 12:13 in Nachricht <1a6092bd-e540-1642-87a4-811ca9413...@pasteur.fr>: > > On 29/07/2022 11:41, Ulrich Windl wrote: > >>>You can use tmpfiles. In the manpage > > Hello, well it seems to depend on the subsystem. I tried the tmpfiles > way but still

Re: [systemd-devel] Antw: [EXT] Re: Q: Change a kernel setting

2022-07-29 Thread Thomas HUMMEL
On 29/07/2022 11:41, Ulrich Windl wrote: You can use tmpfiles. In the manpage Hello, well it seems to depend on the subsystem. I tried the tmpfiles way but still encountered some unexplained race condition as explained here https://lists.freedesktop.org/archives/systemd-devel/2022-Jul

[systemd-devel] Antw: [EXT] Re: Q: Change a kernel setting

2022-07-29 Thread Ulrich Windl
>>> Tomasz Torcz schrieb am 29.07.2022 um 11:01 in Nachricht : > On Fri, Jul 29, 2022 at 08:45:51AM +0200, Ulrich Windl wrote: >> Hi! >> >> I wonder: What is the recommended way to do this with systemd?: >> --- >> Add the following command to a script executed on system boot, such as > /etc/init

Re: [systemd-devel] Q: Change a kernel setting

2022-07-29 Thread Tomasz Torcz
On Fri, Jul 29, 2022 at 08:45:51AM +0200, Ulrich Windl wrote: > Hi! > > I wonder: What is the recommended way to do this with systemd?: > --- > Add the following command to a script executed on system boot, such as > /etc/init.d/boot.local: > > # echo 0 > /sys/kernel/mm/ksm/run > --- > Do I have