Submitted by cognosco on Sun, 03/27/2011 - 15:30
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
Submitted by JamieCameron on Sun, 03/27/2011 - 20:22 Comment #1
Which Linux distribution are you running there? Is it Ubuntu 10.04 , or 10.10 ?
Submitted by cognosco on Mon, 03/28/2011 - 03:53 Comment #2
It is version 10.04.
Submitted by JamieCameron on Mon, 03/28/2011 - 14:12 Comment #3
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?
Submitted by cognosco on Mon, 03/28/2011 - 14:30 Comment #4
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.
Submitted by JamieCameron on Mon, 03/28/2011 - 15:54 Comment #5
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
Submitted by cognosco on Tue, 03/29/2011 - 04:39 Comment #6
Thank you, upgraded to the dev version of Webmin but still not functioning.
Submitted by JamieCameron on Tue, 03/29/2011 - 12:42 Comment #7
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?
Submitted by cognosco on Tue, 03/29/2011 - 13:30 Comment #8
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!
Submitted by JamieCameron on Tue, 03/29/2011 - 15:39 Comment #9
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"
create a file in /lib/init called 'upstart-patch'
copy the below script in that file:
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?
Submitted by JamieCameron on Wed, 03/30/2011 - 14:50 Comment #11
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.
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.
Submitted by cognosco on Mon, 04/04/2011 - 10:33 Comment #13
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:
Then
Problem fixed. I hope you guys can integrate this in Webmin/Virtualmin.
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.