Cannot Install Web Server (insserv Issue)

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:

$named dnsmasq

This must be changed to:

$named $dnsmasq

Once this has been done simply try to install apache2 or nginx again and – et voila – it does not fail anymore.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s