cron2 has submitted this change. ( 
http://gerrit.openvpn.net/c/openvpn/+/1778?usp=email )

Change subject: t_client.sh.in: Do not run resolvectl if systemd is not running
......................................................................

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 <[email protected]>
Acked-by: Gert Doering <[email protected]>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1778
Message-Id: <[email protected]>
URL: 
https://www.mail-archive.com/[email protected]/msg37566.html
Signed-off-by: Gert Doering <[email protected]>
---
M tests/t_client.sh.in
1 file changed, 1 insertion(+), 1 deletion(-)




diff --git a/tests/t_client.sh.in b/tests/t_client.sh.in
index 48e2446..7233187 100755
--- a/tests/t_client.sh.in
+++ b/tests/t_client.sh.in
@@ -209,7 +209,7 @@
     # 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

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1778?usp=email
To unsubscribe, or for help writing mail filters, visit 
http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I677d3206c24aad997889ed76fb8eca2e6f4b1259
Gerrit-Change-Number: 1778
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]>
Gerrit-Reviewer: cron2 <[email protected]>
Gerrit-Reviewer: plaisthos <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to