The reason I ask this is to save resources. I try to save automated cron tasks wherever I can.

Say one installs CalmAV in an Ubuntu based, Apache server, via the command:

apt-get update # apt-get install clamav 

How do you then set the program, through the terminal, to work in an all-manual mode, without any task being performed automatically from cron?

Edit: My VPS is 2 Core processor, 40GB SSD, 2GB RAM, 3TB transfer, Ubuntu 16.0.

  • 1
    Did you look to /etc/crontab? or inside /var/spool/cron/crontabs/ directory? – Luciano Andress Martini Sep 6 '16 at 14:24
  • No, I didn't know these concepts; I thought cron is part of Apache and not of Ubuntu. I am very fresh in VPS. – user149572 Sep 6 '16 at 14:25
  • 1
    Cron is a unix service and is available in most of the distributions and operating systems. – Luciano Andress Martini Sep 6 '16 at 14:26

For this specific task, you'd do dpkg-reconfigure -plow clamav-freshclam and select manual.

Note however that freshclam which updates databases uses minuscule amount of resources (runs one per hour for less than a second if there are no updates), and that clamav with outdated databases is a big problem.

So running update manually every day or so to save 0.01% of system resources is not only big waste of your time (and can lead to less protected server if you're not fast enough), but may actually even use more resources as just the act of your logging in to the server need some resources (which are still so minuscule as to be totally unimportant)

So you're better off leaving it at defaults in this case.

| improve this answer | |
  • You mean it's better off just instaling and that's it? No resources change? Thanks. – user149572 Sep 19 '16 at 21:52
  • @Benia yes, just install it and that's it. – Matija Nalis Sep 20 '16 at 9:37
  • Wow! What you say indeed surprise me, as some people who (seemingly) never used it, told me "It will take huge amount of resources, don't install it!", and things like this... Haha... – user149572 Sep 20 '16 at 9:42
  • BTW, my VPS is 2 Core processor, 40GB SSD, 2GB RAM, 3TB transfer, Ubuntu 16.0. – user149572 Sep 20 '16 at 21:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy