Can not prevent processes from loading at boot in Webmin GUI.

I am trying to stop the ClamAV service at boot, but it doesn't seem to work. Selecting the process and clicking Disable now and On Boot doesn't work. Clicking on the process itself and then trying to disable loading on boot doesn't work either.

Is there something wrong? I am experiencing this problem on the same server that didn't install php-mysql automatically while running your install.sh script (as posted also here). Maybe it is related?

Status: 
Active

Comments

Which Linux distribution are you running there? Is it Ubuntu 10.04 , or 10.10 ?

Ok, Ubuntu 10.04 should work fine .. at least it does for me.

Does this problem only happen with the clamav bootup action, or for any action?

It happens with all processes. Stopping processes works fine. Running the disable and stop action, or only the stop action results in stopping the process properly. But the disable on boot functions doesn't seem to work at all here.

Does it help if you download and install the 1.536 development version of Webmin from http://www.webmin.com/devel.html ? This can be done with the commands :

cd /tmp
wget "http://download.webmin.com/devel/deb/webmin_1.536_all.deb"
dpkg --install webmin_1.536_all.deb

Thank you, upgraded to the dev version of Webmin but still not functioning.

What if you SSH into the system and try disabling the action with a command like :

insserv -r clamav-daemon

Does that report any errors?

When I run that command I get a lot of errors:

The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'S99mysql' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: current start runlevel(s) (0 6) of script `umountfs' overwrite
s defaults (empty).
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'procps' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'plymouth-splash' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'cron' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'failsafe-x' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'rsyslog' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `sendsigs' overwrite
s defaults (empty).
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'hwclock' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'hwclock-save' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'dbus' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'udev' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'mysql' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (6) of script `reboot' overwrites de
faults (empty).
insserv: warning: current start runlevel(s) (0 6) of script `umountnfs.sh' overw
rites defaults (empty).
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'plymouth' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'udevmonitor' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'console-setup' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0) of script `halt' overwrites defa
ults (empty).
insserv: warning: current start runlevel(s) (0 6) of script `networking' overwri
tes defaults (empty).
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'dmesg' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'plymouth-stop' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'udev-finish' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'plymouth-log' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'network-interface-security' missing LSB tags and overr
ides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'udevtrigger' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'network-interface' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `umountroot' overwri
tes defaults (empty).
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'module-init-tools' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'hostname' missing LSB tags and overrides
insserv: There is a loop between service rsyslog and apache2 if stopped
insserv:  loop involving service apache2 at depth 3
insserv:  loop involving service rsyslog at depth 2
insserv:  loop involving service udev at depth 1
insserv: There is a loop between service rsyslog and apache2 if stopped
insserv:  loop involving service hwclock at depth 2
insserv: exiting now without changing boot order!

Those messages at the bottom about a loop between apache2 and rsyslog look like the cause - they are preventing any changes of boot-time start order from being applied!

I'd suggest googling for the message "There is a loop between service rsyslog and apache2 if stopped"

ronald's picture
Submitted by ronald on Wed, 03/30/2011 - 14:02 Pro Licensee

create a file in /lib/init called 'upstart-patch'
copy the below script in that file:

*** upstart-job Wed Mar 16 08:06:53 2011 --- upstart-job.orig Wed Mar 16 08:06:15 2011 *************** *** 65,82 **** $ECHO "Upstart job, you may also use the $COMMAND(8) utility, e.g. $COMMAND $JOB" reload "$JOB" ;; - lsb-header) - $ECHO "### BEGIN INIT INFO" - $ECHO "# Provides: $JOB" - $ECHO "# Required-Start:" - $ECHO "# Required-Stop:" - $ECHO "# Should-Start:" - $ECHO "# Should-Stop:" - $ECHO "# Default-Start:" - $ECHO "# Default-Stop:" - $ECHO "# Short-Description: $JOB, converted to upstart." - $ECHO "### END INIT INFO" - ;; *) $ECHO $ECHO "The script you are attempting to invoke has been converted to an Upstart" 1>&2 --- 65,70 ----

open a shell and type: cd /lib/init
then:
sudo patch < "/lib/init/startup-patch"

problem solved. Per haps this can be integrated in webmin?

Wow, I'm surprised that is needed.

This really feels more like a Debian bug to me - some of its own init scripts are not getting the right headers.

ronald's picture
Submitted by ronald on Wed, 03/30/2011 - 15:23 Pro Licensee

from what I have read, this is a (another) Debian bug which was supposed to be fixed in Ubuntu 10.04-2
as I have to use 1 ubuntu server now I was also looking for a solution (any many more)...hooray for CentOS where almost all my stuff just works.

Thank you for your reaction. Ronald, thank you for giving this information. The fix you gave didn't work (it was the first version, but bugged). After searching I found the original topic where the poster of your script posted an updated version ;-) That worked perfect.

The instructions are still the same as Ronald posted above, only the script contents are changed:

*** upstart-job.orig 2011-03-16 08:06:15.275456408 -0400 --- upstart-job 2011-03-16 08:44:45.622968551 -0400 *************** *** 65,70 **** --- 65,82 ---- $ECHO "Upstart job, you may also use the $COMMAND(8) utility, e.g. $COMMAND $JOB" reload "$JOB" ;; + lsb-header) + $ECHO "### BEGIN INIT INFO" + $ECHO "# Provides: $JOB" + $ECHO "# Required-Start:" + $ECHO "# Required-Stop:" + $ECHO "# Should-Start:" + $ECHO "# Should-Stop:" + $ECHO "# Default-Start:" + $ECHO "# Default-Stop:" + $ECHO "# Short-Description: $JOB, converted to upstart." + $ECHO "### END INIT INFO" + ;; *) $ECHO $ECHO "The script you are attempting to invoke has been converted to an Upstart" 1>&2

Then

sudo patch < "/lib/init/upstart-patch"

Problem fixed. I hope you guys can integrate this in Webmin/Virtualmin.

ronald's picture
Submitted by ronald on Mon, 04/04/2011 - 12:25 Pro Licensee

Oh Thats funny... so even the script doesn't work for all machines? ... :/ as it did the job on my Ubuntu 10.04-2 server.
Great that you have found the updated one too.