Freshclam.service not found after CentOS 8 Perfect server install

Discussion in 'Installation/Configuration' started by jnewman67, Nov 11, 2021.

  1. jnewman67

    jnewman67 Active Member HowtoForge Supporter

    I've been running ISPConfig 3.2.6 for about 2 months now, no real issues to speak of, very happy at this point.
    However, I just realized that my clamav databases are NOT getting updated automatically. and a status request on freshclam.service says it can't be found.
    Going back through the Perfect Server CentOS 8 instructions, I see that clamav-update was installed, but freshclam was never set up after that.
    Following the general directions, running
    systemctl enable freshclam.service​
    says the unit does not exist either.
    so poking around online, i found this set of instructions:
    vi /usr/lib/systemd/system/freshclam.service
    add the following to the new file:
    Description = ClamAV Scanner
    After =
    Type = forking
    # if you want to scan more than one in a day change the number 1 with your desired number in below line.
    ExecStart = /usr/bin/freshclam -d -c 1
    Restart = on-failure
    PrivateTmp =true
    then run the following commands to enable it, start it, and check on it
    systemctl enable freshclam.service
    systemctl start freshclam.service
    systemctl status freshclam.service
    should return a "active (running)" status
    if someone notices anything wrong with the above instructions, let me know. Could someone add this to the Perfect Server instructions as well?
    (very happy to finally have something to contribute :)
    florian030 and till like this.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Thanks! I'll add it to the guide.

Share This Page