3.0.2.3 freshclam daily cron job missing?

Report bugs and workarounds
Post Reply
henk
Posts: 518
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

3.0.2.3 freshclam daily cron job missing?

Post by henk »

After a fresh install from 3.0.2.3 and upgrading to 3.0.2.4. ( vmware image) I couldn't find the daily cronjob for freshclam.
Looks like it was already gone in 3.0.2.3.
Since I did a manual freshclam -v several times , i can't check the /var/log/clamav/freshclam.log for recent runtimes. :oops:

No need to mention the need for updates :shock:

There should be a freshclam job in /etc/cron.daily. ( or is there another way to update?)

Code: Select all

[root@efa3.0.2.4 cron.daily]# ls -l
total 52
-rw-r--r--. 1 root root  530 May 24 12:13 1
lrwxrwxrwx  1 root root   26 Aug 28 09:39 cron-dccd -> /var/dcc/libexec/cron-dccd
-rwx------. 1 root root 1099 May 24 12:16 EFA-Backup-cron
-rwx------. 1 root root 1107 May 24 12:16 EFA-Daily-cron
-rwxr-xr-x. 1 root root  120 May 24 12:13 eFa-SAClean
-rwx------. 1 root root 2161 May 24 12:13 EFA-Tokens-Cron
-r-xr-xr-x  1 root root  313 Jul 29 17:04 logrotate
-rwxr-xr-x  1 root root  188 Aug 28 11:06 mailscanner
-rwxr-xr-x  1 root root  289 Sep  7 13:52 mailwatch
-rwx------. 1 root root  927 Mar 22 01:53 makewhatis.cron
-rwx------. 1 root root  189 Jan 26  2015 mlocate.cron
-rwxr-xr-x. 1 root root 2126 Jul 19  2013 prelink
-rwxr-xr-x. 1 root root  563 Nov 23  2013 readahead.cron
-rwxr-xr-x  1 root root  848 Jul 29 17:04 tmpwatch
Original daily freschclam job:

Code: Select all

#!/bin/sh

### A simple update script for the clamav virus database.
### This could as well be replaced by a SysV script.

### fix log file if needed
LOG_FILE="/var/log/clamav/freshclam.log"
if [ ! -f "$LOG_FILE" ]; then
    touch "$LOG_FILE"
    chmod 644 "$LOG_FILE"
    chown clam.clam "$LOG_FILE"
fi

/usr/bin/freshclam \
    --quiet \
    --datadir="/var/lib/clamav" \
    --log="$LOG_FILE"
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
User avatar
shawniverson
Posts: 3649
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: 3.0.2.3 freshclam daily cron job missing?

Post by shawniverson »

MailScanner can do this too...

Code: Select all

# Update Virus Scanner sigs
#
# Update the virus scanner definitions. Most virus scanners update themselves
# these days so this is off by default.
#
# This is executed during the DAILY cron option.  0 = off, 1 = on
#
ms_cron_av=1
henk
Posts: 518
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: 3.0.2.3 freshclam daily cron job missing?

Post by henk »

Thanks. It's running :oops: :oops:
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
ovizii
Posts: 463
Joined: 11 May 2016 08:08

Re: 3.0.2.3 freshclam daily cron job missing?

Post by ovizii »

so is it a bug or has the freshclam daily cron job been dropped in favor of the Mailscanner solution?
henk
Posts: 518
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: 3.0.2.3 freshclam daily cron job missing?

Post by henk »

No bug.My mistake :oops: Mailscanner takes care of it.

If you want to know when freshclam is running:

Code: Select all

cat /var/log/messages |grep freshclam
You should see something like this:

Code: Select all

Sep 17 04:01:29 E.F.A freshclam[20696]: ClamAV update process started at Sun Sep 17 04:01:29 2017
Sep 17 04:01:29 E.F.A freshclam[20696]: main.cld is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Sep 17 04:01:29 E.F.A freshclam[20696]: Downloading daily-23839.cdiff [100%]
Sep 17 04:01:29 E.F.A freshclam[20696]: Downloading daily-23840.cdiff [100%]
Sep 17 04:01:29 E.F.A freshclam[20696]: Downloading daily-23841.cdiff [100%]
Sep 17 04:01:29 E.F.A freshclam[20696]: Downloading daily-23842.cdiff [100%]
Sep 17 04:01:33 E.F.A freshclam[20696]: daily.cld updated (version: 23842, sigs: 1743040, f-level: 63, builder: neo)
Sep 17 04:01:33 E.F.A freshclam[20696]: bytecode.cld is up to date (version: 312, sigs: 74, f-level: 63, builder: neo)
Sep 17 04:01:36 E.F.A freshclam[20696]: Database updated (6309363 signatures) from db.nl.clamav.net (IP: 145.58.29.83)
Sep 18 04:30:08 E.F.A freshclam[21662]: ClamAV update process started at Mon Sep 18 04:30:08 2017
Sep 18 04:30:08 E.F.A freshclam[21662]: main.cld is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Sep 18 04:30:09 E.F.A freshclam[21662]: Downloading daily-23843.cdiff [100%]
Sep 18 04:30:09 E.F.A freshclam[21662]: Downloading daily-23844.cdiff [100%]
Sep 18 04:30:09 E.F.A freshclam[21662]: Downloading daily-23845.cdiff [100%]
Sep 18 04:30:09 E.F.A freshclam[21662]: Downloading daily-23846.cdiff [100%]
Sep 18 04:30:09 E.F.A freshclam[21662]: Downloading daily-23847.cdiff [100%]
Sep 18 04:30:13 E.F.A freshclam[21662]: daily.cld updated (version: 23847, sigs: 1743042, f-level: 63, builder: neo)
Sep 18 04:30:13 E.F.A freshclam[21662]: bytecode.cld is up to date (version: 312, sigs: 74, f-level: 63, builder: neo)
Sep 18 04:30:16 E.F.A freshclam[21662]: Database updated (6309365 signatures) from db.nl.clamav.net (IP: 145.58.29.83)
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
Post Reply