diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-12-05 15:42:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-05 15:42:35 -0500 |
commit | 49ad2e283c7ed68e83c5d8f2ad7e89a189833cbd (patch) | |
tree | 82ddae6e18f2398e7bbd75b9fd003f97f5d3b680 /roles/openshift_node_dnsmasq | |
parent | 110fe9352d3d935d1c4c90b16275e14ab2bf2da5 (diff) | |
parent | 7d9b624ea0707eaf6875a6781aed2f7f387fe349 (diff) | |
download | openshift-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
Diffstat (limited to 'roles/openshift_node_dnsmasq')
-rwxr-xr-x | roles/openshift_node_dnsmasq/files/networkmanager/99-origin-dns.sh | 4 |
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 |