From: Yu Watanabe Date: Fri, 2 Jul 2021 17:04:31 +0000 (+0900) Subject: test: enable debug logging of systemd-oomd X-Git-Tag: v250-rc1~954^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7674ab20679daee4a1a59ab473462bd0524be4b;p=thirdparty%2Fsystemd.git test: enable debug logging of systemd-oomd --- diff --git a/test/units/testsuite-55.sh b/test/units/testsuite-55.sh index 63549c8a785..a6931a43617 100755 --- a/test/units/testsuite-55.sh +++ b/test/units/testsuite-55.sh @@ -23,6 +23,16 @@ rm -rf /etc/systemd/system/testsuite-55-testbloat.service.d echo "DefaultMemoryPressureDurationSec=5s" >>/etc/systemd/oomd.conf +mkdir -p /etc/systemd/system/systemd-oomd.service.d/ +echo -e "[Service]\nEnvironment=SYSTEMD_LOG_LEVEL=debug" >/etc/systemd/system/systemd-oomd.service.d/debug.conf + +systemctl daemon-reload + +# 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 +fi + systemctl start testsuite-55-testchill.service systemctl start testsuite-55-testbloat.service