summaryrefslogtreecommitdiffstats
path: root/units/systemd-oomd.service.in
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-09-11 13:56:15 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-09-12 03:29:29 +0200
commitca589b1b4139c85e2ae55b62be0a2a6d3eb4db90 (patch)
tree3f9ce22db4d83b4bbb31da7d06f4b465604677ac /units/systemd-oomd.service.in
parenttest-oomd-util: skip tests if cgroup memory controller is not available (diff)
downloadsystemd-ca589b1b4139c85e2ae55b62be0a2a6d3eb4db90.tar.xz
systemd-ca589b1b4139c85e2ae55b62be0a2a6d3eb4db90.zip
unit: systemd-oomd.service requires cgroup memory controller
Diffstat (limited to 'units/systemd-oomd.service.in')
-rw-r--r--units/systemd-oomd.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/systemd-oomd.service.in b/units/systemd-oomd.service.in
index 0d2d409881..44f71c9e36 100644
--- a/units/systemd-oomd.service.in
+++ b/units/systemd-oomd.service.in
@@ -14,6 +14,7 @@ DefaultDependencies=no
Before=multi-user.target shutdown.target
Conflicts=shutdown.target
ConditionControlGroupController=v2
+ConditionControlGroupController=memory
ConditionPathExists=/proc/pressure/cpu
ConditionPathExists=/proc/pressure/io
ConditionPathExists=/proc/pressure/memory