From 7d9b624ea0707eaf6875a6781aed2f7f387fe349 Mon Sep 17 00:00:00 2001 From: Scott Dodson Date: Mon, 5 Dec 2016 14:13:05 -0500 Subject: node_dnsmasq - restart dnsmasq if it's not currently running Fixes Bug 1401425 Fixes BZ1401425 --- roles/openshift_node_dnsmasq/files/networkmanager/99-origin-dns.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3