From 5dbf476b118815d9eed538c9ce3d51adf0ea1cf1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 12 Mar 2025 17:13:24 +0100 Subject: [PATCH] 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 --- units/systemd-oomd.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/units/systemd-oomd.service.in b/units/systemd-oomd.service.in index 3e9533dac4..ed120cb569 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