Setting a service to automatically start at boot time fails

Versions where the problem was observerd:

Virtualmin: 3.93.gpl or 3.94.gpl
Webmin 1.590
Linux: Debian 6 (Kernel: 2.6.32-5-openvz-amd64)

The output of the following command, has more information:

# update-rc.d -f apache2 defaults

update-rc.d: using dependency based boot sequencing
insserv: warning: current start runlevel(s) (empty) of script `apache2' overwrites defaults (2 3 4 5).
insserv: script service shinken already provided!

This problem is not apache specific, it happens with every service we want to start automatically at boot time.

Closed (fixed)


Using the following works (using urandom as an example service):

# insserv -d urandom #

Now the service shows up as enabled for start at boot time in Webmin and can be disabled through the Webmin interface. But it cannot be re-enabled through the Webmin interface.

To enable you have to use insserv or update-rc.d, although some cases, update-rc.d produces some strange messages like below and doesn't work:

# update-rc.d urandom defaults update-rc.d: using dependency based boot sequencing update-rc.d: warning: urandom start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (S) update-rc.d: warning: urandom stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (0 6) root@alm8o:/etc/insserv/overrides #

Any ideas what is going on here?

Howdy -- init scripts aren't actually setup by Virtalmin... the errors you're seeing sound like some sort of issue in the underlying OS setup.

Did you by chance upgrade that server from Debian 5?

I'm curious if maybe some of the init scripts are from an older Debian version, and may not all contain the correct init information used by the newer Debian version.

There is actually a Webmin "bug" that can cause this for some init scripts on Debian. In some cases the update-rc.d script doesn't work, so Webmin has to fall back to creating symlinks itself.

It will be fixed in Webmin 1.600 though, which we are working on getting released. Or you can download the 1.599 development version in Debian package format from ..

Automatically closed -- issue fixed for 2 weeks with no activity.