Update script to restart the dnsmasq service using systemctl(systemd) command instead of service(Upstart)

This commit is contained in:
Marcelo Elizeche Landó 2017-11-21 00:49:05 -03:00
parent e01521bbf4
commit 8366e0c85f

View file

@ -38,6 +38,8 @@ else
cat "$TEMP_SORTED" > $DNSMASQ_BLOCKHOSTS
fi
service dnsmasq restart
echo 'Restarting dnsmasq service...'
#Restart the dnsmasq service
systemctl restart dnsmasq.service
exit 0