summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-12-05 15:42:35 -0500
committerGitHub <noreply@github.com>2016-12-05 15:42:35 -0500
commit49ad2e283c7ed68e83c5d8f2ad7e89a189833cbd (patch)
tree82ddae6e18f2398e7bbd75b9fd003f97f5d3b680
parent110fe9352d3d935d1c4c90b16275e14ab2bf2da5 (diff)
parent7d9b624ea0707eaf6875a6781aed2f7f387fe349 (diff)
downloadopenshift-49ad2e283c7ed68e83c5d8f2ad7e89a189833cbd.tar.gz
openshift-49ad2e283c7ed68e83c5d8f2ad7e89a189833cbd.tar.bz2
openshift-49ad2e283c7ed68e83c5d8f2ad7e89a189833cbd.tar.xz
openshift-49ad2e283c7ed68e83c5d8f2ad7e89a189833cbd.zip
Merge pull request #2915 from sdodson/BZ1401425
node_dnsmasq - restart dnsmasq if it's not currently running
-rwxr-xr-xroles/openshift_node_dnsmasq/files/networkmanager/99-origin-dns.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/openshift_node_dnsmasq/files/networkmanager/99-origin-dns.sh b/roles/openshift_node_dnsmasq/files/networkmanager/99-origin-dns.sh
index ac8ee54e4..24798d3d2 100755
--- a/roles/openshift_node_dnsmasq/files/networkmanager/99-origin-dns.sh
+++ b/roles/openshift_node_dnsmasq/files/networkmanager/99-origin-dns.sh
@@ -80,6 +80,10 @@ EOF
NEEDS_RESTART=1
fi
+ if ! `systemctl -q is-active dnsmasq.service`; then
+ NEEDS_RESTART=1
+ fi
+
######################################################################
if [ "${NEEDS_RESTART}" -eq "1" ]; then
systemctl restart dnsmasq