summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-12-05 14:13:05 -0500
committerScott Dodson <sdodson@redhat.com>2016-12-05 14:29:51 -0500
commit7d9b624ea0707eaf6875a6781aed2f7f387fe349 (patch)
tree832637f6f5fc481eceb3a71f8650adc387270bc2
parent3041cb8a4df8914f5f006f390ebb4cdb3feff47a (diff)
downloadopenshift-7d9b624ea0707eaf6875a6781aed2f7f387fe349.tar.gz
openshift-7d9b624ea0707eaf6875a6781aed2f7f387fe349.tar.bz2
openshift-7d9b624ea0707eaf6875a6781aed2f7f387fe349.tar.xz
openshift-7d9b624ea0707eaf6875a6781aed2f7f387fe349.zip
node_dnsmasq - restart dnsmasq if it's not currently running
Fixes Bug 1401425 Fixes BZ1401425
-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