Results 1 to 9 of 9

Thread: The service 'freshclam' on server is currently down

  1. #1
    Join Date
    Sep 2009
    Location
    NZ
    Posts
    63

    The service 'freshclam' on server is currently down

    Hello,
    I am getting this message from directadmin every hour on 2 Debian servers, but unsure why its happening and how to stop it.
    The service 'freshclam' on server is currently down.
    Thanks

  2. #2
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,398
    Hello,

    Either start freshclamd

    Code:
    /etc/init.d/freshclam start
    (btw what do you see if you try to start it manually?)

    or remove freshclam from monitoring:

    Code:
    ./build set_service freshclam OFF

  3. #3
    Join Date
    Sep 2009
    Location
    NZ
    Posts
    63
    Thanks, I get this error

    /etc/init.d/freshclam start
    -bash: /etc/init.d/freshclam: No such file or directory

  4. #4
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,398
    I see, I've missed you on Debian 8. Try then

    Code:
    systemctl start freshclam
    systemctl status freshclam

  5. #5
    Join Date
    Dec 2007
    Posts
    47
    Ran into same issue, would appear the lock directory is not created correctly, causing the daemon to have some weird failed state all the time:

    Code:
    killall freshclam
    mkdir -p /var/run/clamd
    chown root:clamav /var/run/clamd
    chmod -R 775 /var/run/clamd
    systemctl start freshclam
    After this the status command should show it as running correctly.

  6. #6
    Join Date
    Sep 2009
    Location
    NZ
    Posts
    63
    Legend! This fixed my issue too, thanks!

  7. #7
    Join Date
    Dec 2007
    Posts
    47
    Just noticed - this issue appears again after reboot, apparently something is wrong with the startup scripts fundamentally. That makes this an issue for the DA team to resolve.

  8. #8
    Join Date
    Feb 2006
    Posts
    24
    I was under the impression that the binary itself was called and ran as a script rather than a running service. I believe it can be done either way.

  9. #9
    Join Date
    Sep 2016
    Posts
    24
    If you installed custombuild2 with clamav, you can copy there init.d script.

    Code:
    cp -a /usr/local/directadmin/custombuild/freshclam_debian /etc/init.d/freshclam
    chmod 755 /etc/init.d/freshclam
    ln -s /usr/local/bin/freshclam /usr/bin/freshclam

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •