In our lab we run Voyage Linux (3.16.7-ckt9-voyage) on our APUs and recently the installation of a web server (both nginx and apache2) failed with the line:
insserv: Service dnsmasq has to be enabled to start service apache2||nginx
The issue is not related with dnsmasq not running or not being able to be restarted. The issue is related to the move to systemd and how the /etc/init.d scripts are written. It turns out that all commands in /etc/insserv.conf.d/ must be called with $. For instance, in the example above the dnsmasq file in /etc/insserv.conf.d/ looked like this:
This must be changed to:
Once this has been done simply try to install apache2 or nginx again and – et voila – it does not fail anymore.