From: Lennart Poettering Date: Wed, 12 Mar 2025 16:13:24 +0000 (+0100) Subject: units: order oomd after swap.target X-Git-Tag: v258-rc1~1099 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5dbf476b118815d9eed538c9ce3d51adf0ea1cf1;p=thirdparty%2Fsystemd.git units: order oomd after swap.target oomd only works well if we have swap, hence we should not start it before swaps are up, in particular as we will print an annoying message otherwise. Fixes: #36704 --- diff --git a/units/systemd-oomd.service.in b/units/systemd-oomd.service.in index 3e9533dac4e..ed120cb569a 100644 --- a/units/systemd-oomd.service.in +++ b/units/systemd-oomd.service.in @@ -12,6 +12,7 @@ Description=Userspace Out-Of-Memory (OOM) Killer Documentation=man:systemd-oomd.service(8) Documentation=man:org.freedesktop.oom1(5) DefaultDependencies=no +After=swap.target Before=multi-user.target shutdown.target Conflicts=shutdown.target ConditionControlGroupController=v2