From: Frank Lichtenheld Date: Mon, 13 Jul 2026 15:18:11 +0000 (+0200) Subject: t_client.sh.in: Do not run resolvectl if systemd is not running X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=162f19112702d1c8045efd17c5b09022fe1e04fb;p=thirdparty%2Fopenvpn.git t_client.sh.in: Do not run resolvectl if systemd is not running In some cases we will have resolvectl installed but no running systemd. E.g. on old Ubuntu distros resolvectl is part of the main systemd package which we have installed as a build-dependency. Supress the warnings from resolvectl in this case. Change-Id: I677d3206c24aad997889ed76fb8eca2e6f4b1259 Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1778 Message-Id: <20260713151816.22005-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg37566.html Signed-off-by: Gert Doering --- diff --git a/tests/t_client.sh.in b/tests/t_client.sh.in index 48e244624..7233187f8 100755 --- a/tests/t_client.sh.in +++ b/tests/t_client.sh.in @@ -209,7 +209,7 @@ get_ifconfig_route() # except Linux and MacOS case $UNAME in Linux) - if [ -x /usr/bin/resolvectl ] ; then + if [ -x /usr/bin/resolvectl -a -d /run/systemd/system ] ; then echo "-- linux resolvectl --" resolvectl status else