Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: ruipedroca on May 24, 2008, 01:33:35 AM

Title: What is the correct way disable clamAV (linux only LAN without internet access)
Post by: ruipedroca on May 24, 2008, 01:33:35 AM
Hi,

What is the correct way disable clamAV?

ClamAV is great, but is not needed in a linux only LAN without internet access.
So, what must be done in order to stop receiving warnings like: "freshclam: Update failed" or "Cron Daemon "
I've made a search before creating this post, but didn't find anyone with this explicit purpose.

Thanks in advance!
Title: Re: What is the correct way disable clamAV (linux only LAN without internet acce
Post by: Stefano on May 24, 2008, 09:43:18 AM
Hi

Code: [Select]
config setprop freshclam status disabled
service freshclam stop

should do what you want.

HTH
Stefano
Title: Re: What is the correct way disable clamAV (linux only LAN without internet acce
Post by: ruipedroca on May 24, 2008, 10:16:53 AM
Hi, Stefano!

Thanks for your reply! Will try that and then post feedback!

Best regards!
Title: Re: What is the correct way disable clamAV (linux only LAN without internet acce
Post by: ruipedroca on May 25, 2008, 02:34:17 AM
Hi, Stefano!

Like you said, i've tried:

config setprop freshclam status disabled  [this worked]
service freshclam stop [this failed, maybe this line should have been the first?...]

After rebooting , i didn't get any email from freshclam , so i conclude that it was disabled successfully!

Thanks and best regards!

Title: Re: What is the correct way disable clamAV (linux only LAN without internet acce
Post by: stephen noble on May 25, 2008, 05:45:44 AM
fyi

http://wiki.contribs.org/Services

freshclam is supervised so a few moments after disabling it is automatically stopped
Title: Re: What is the correct way disable clamAV (linux only LAN without internet acce
Post by: ruipedroca on May 25, 2008, 04:46:40 PM
Hi, snoble!

Thanks for the info!

Now, i need some help in the sequence for this same post, for the same server admin email now gets two error messages:
email error 1 - "Cron <root@anemailserver> run-parts /etc/cron.daily"
email error 2 - "Cron <root@anemailserver> /sbin/e-smith/check4updates -m"

Like i said previously, this server is serving a lan without internet access.
I've already done "# vi /etc/cron.daily/01-rkhunter" but i have no idea what to change there..

I believe SME Server is built to automatically update itself, which is very good and safe.
But, as i have to run this server without internet access, these automatic updates must be disabled or i'll keep getting error emails.
Am i right?

Thanks in advance!

Title: Re: What is the correct way disable clamAV (linux only LAN without internet acce
Post by: cactus on May 25, 2008, 06:04:36 PM
I believe SME Server is built to automatically update itself, which is very good and safe.
But, as i have to run this server without internet access, these automatic updates must be disabled or i'll keep getting error emails.
Am i right?
It is not built to automatically update (by default), it will however look for available updates. You can disable the update check like this:
Code: [Select]
db configuration setprop yum status disabled
Title: Re: What is the correct way disable clamAV (linux only LAN without internet acce
Post by: ruipedroca on May 25, 2008, 06:12:18 PM
Hi, cactus!

Thanks again!

I'll try and report back in a few days if all runs ok!

Best regards!
Title: Re: What is the correct way disable clamAV (linux only LAN without internet acce
Post by: CharlieBrady on May 25, 2008, 09:54:51 PM
freshclam is supervised so a few moments after disabling it is automatically stopped

No, that is not correct. Changing the status property in the configuration database doesn't cause the running service to be stopped.
Title: Re: What is the correct way disable clamAV (linux only LAN without internet acce
Post by: stephen noble on May 26, 2008, 02:00:02 AM

my bad, i was thinking of this line in the devguide

>The /service/myserver symbolic link is owned by the RPM, and when it is removed, runsvdir will soon >notice and kill the runsv supervision process.
Title: Re: What is the correct way disable clamAV (linux only LAN without internet acce
Post by: CharlieBrady on May 26, 2008, 03:34:00 AM
my bad, i was thinking of this line in the devguide

>The /service/myserver symbolic link is owned by the RPM, and when it is removed, runsvdir will soon >notice and kill the runsv supervision process.


Yes, removing a package which contains a supervised service will automatically stop the service. Disabling the service won't stop it.
Title: Re: What is the correct way disable clamAV (linux only LAN without internet acce
Post by: ruipedroca on May 26, 2008, 01:13:28 PM
Hi, guys!

Just to report:
I still got this email message tonight at around 3:00 a.m.:
"freshclam: Update failed"

And i also got this message, around the same time:
"Cron <root@anemailserver> run-parts /etc/cron.daily"

However, this one stopped showing:
"Cron <root@anemailserver> /sbin/e-smith/check4updates -m"

Any sugestions?

Thanks in advance!
Title: Re: What is the correct way disable clamAV (linux only LAN without internet acce
Post by: ruipedroca on May 28, 2008, 12:04:20 PM
Hi,

Can someone please help?
I'm receiving these two messages everynight.

Thanks in advance!
Title: Re: What is the correct way disable clamAV (linux only LAN without internet acce
Post by: cactus on May 28, 2008, 12:18:20 PM
Hi,

Can someone please help?
I'm receiving these two messages everynight.

Thanks in advance!
You can not easily disable them I think, there seems to be no feature for this one AFAIK, but what is wrong with ignoring them? You know why the error is there, as you have no internet connection, so not much to bother about I think.
Title: Re: What is the correct way disable clamAV (linux only LAN without internet acce
Post by: ruipedroca on May 28, 2008, 02:18:13 PM
Hi, cactus!

I don't mind receiving those two emails every night, for i easily solved it with a folder and an apropriate filter.

I was only worried about any other possible implications ignoring those emails could have. But, like you said, there's nothing wrong ignoring them, so i'll just leave it like that, which is fine!

Thanks for everyting and best regards!