added check if dnsmasq is running

This commit is contained in:
Leo Krueger 2014-02-21 22:22:09 +01:00
parent 0bd3f61f61
commit 0282edc89d

View file

@ -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