From: Michael Biebl Date: Wed, 12 Jan 2022 11:29:34 +0000 (+0100) Subject: test: enable systemd-oomd.service X-Git-Tag: archive/raspbian/250.3-2+rpi1^2~25 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=446f5556127b215e17d8f38c866f564093099258;p=systemd.git test: enable systemd-oomd.service Enable the service to ensure dbus-org.freedesktop.oom1.service exists and D-Bus activation works. See #18469 (cherry picked from commit d338b1713aabcdc2f90d907c72f8fada085bb15e) Gbp-Pq: Name test-enable-systemd-oomd.service.patch --- diff --git a/test/units/testsuite-55.sh b/test/units/testsuite-55.sh index f0837d22..009933e6 100755 --- a/test/units/testsuite-55.sh +++ b/test/units/testsuite-55.sh @@ -35,6 +35,10 @@ echo -e "[Service]\nEnvironment=SYSTEMD_LOG_LEVEL=debug" >/etc/systemd/system/sy systemctl daemon-reload +# enable the service to ensure dbus-org.freedesktop.oom1.service exists +# and D-Bus activation works +systemctl enable systemd-oomd.service + # if oomd is already running for some reasons, then restart it to make sure the above settings to be applied if systemctl is-active systemd-oomd.service; then systemctl restart systemd-oomd.service