diff --git a/updateDnsmasq.sh b/updateDnsmasq.sh index 46e0f3c..f22a215 100755 --- a/updateDnsmasq.sh +++ b/updateDnsmasq.sh @@ -19,3 +19,7 @@ then /usr/sbin/service dnsmasq restart fi +ps -C "dnsmasq" 2>&1>/dev/null +if [[ $? -ne 0 ]] + /usr/sbin/service dnsmasq restart +fi