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