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
This commit is contained in:
Lennart Poettering
2025-03-12 17:13:24 +01:00
committed by Yu Watanabe
parent c5a5046792
commit 5dbf476b11

View File

@@ -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