Skip to main content

clamav scan times vs. cron scan times

Comments

4 comments

  • cPRex Jurassic Moderator
    Hey there! I installed the plugin on a test machine and the only cron I see being created is this root-level cron: 59 0 * * * /usr/local/cpanel/3rdparty/bin/freshclam --quiet --no-warnings
    By default, Clamd runs as a daemon, and doesn't need a cron to function while it scans the incoming mail. However, if you want to take advantage of the additional tools it offers, such as scanning individual account directories, that would be a separate cron. If you remove the software completely fro the WHM >> Manage Plugins page, the default cron job will also not work and be removed. If you have custom crons implemented at the user level those will just give an error that the software can't be found. When I performed my testing I didn't see any user-level crons created. Let me know if that answers what you were looking for!
    0
  • jeffschips
    Thanks. I'm okay with leaving clamav installed as a plugin and the cron you sited above updates the signatures, doesn't do any scanning. . . I think. I've disabled all scanning in the plugin so I'm assuming the signatures will be updated and the below cron job will do the scanning. I do want extra scanning so I've put a cron job and it seems to be running fine. while read domain user; do /usr/local/cpanel/3rdparty/bin/clamscan -i -r /home/"$user" 2>&1; done >/root/diseases.txt
    0
  • cPRex Jurassic Moderator
    Correct - that root cron only updates the Clam software, and doesn't actually perform the scanning. That command is perfect that will scan all the users and create that output file, so no reason you can't leave that in place. You can check out some additional configuration options in our docs here:
    0
  • jeffschips
    SOLVED: thanks!
    0

Please sign in to leave a comment.