If somebody else also needs to deploy clamav packages automatically, you
can add something like this at the end of your installation scripts:

nohup $(
    command -v systemctl || exit 0
    systemctl status clamav-freshclam || systemctl restart clamav-freshclam
    while [ ! -f /var/lib/clamav/daily.cvd ]
    do
        sleep 1
    done
    sleep 5
    systemctl status clamav-daemon || systemctl restart clamav-daemon
) >/dev/null 2>&1 &

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1590688

Title:
  clamav-daemon doesn't start after installation

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/1590688/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to