]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: order oomd after swap.target
authorLennart Poettering <lennart@poettering.net>
Wed, 12 Mar 2025 16:13:24 +0000 (17:13 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Mar 2025 20:24:11 +0000 (05:24 +0900)
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

index 3e9533dac4e7925ada6b3b63a7258a1f5b58d0a7..ed120cb569a732f53a498c6b49df0ed8aa975d39 100644 (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