In dnsmasq.sh script used command service dnsmasq start || service dnsmasq restart which never restarts server because first part always returns true.
It may be rewritten as:
(service dnsmasq status && service dnsmasq restart) || service dnsmasq start
My configuration:
OS:
NAME="Ubuntu"
VERSION="14.04.3 LTS, Trusty Tahr"
ID=ubuntu
Dnsmasq version 2.68