[clamav-users] Clamd freshclam Service

Will Watters willwatters at hotmail.com
Thu Nov 26 10:55:51 UTC 2020


Hello,

Is there anywhere to get clamd freshclam file to run as a daemon for Centos 6 please, so the service can be stopped and started, etc.

I have this for Centos 7 but is systemd residing in /lib/systemd/system/clamd-freshclam.service, which does not work for Centos 6:

# Run freshclam as a daemon.
[Unit]
Description = ClamAV Freshclam service.
After = network.target
[Service]
Type = forking
ExecStart = /usr/bin/freshclam --daemon --checks 2
Restart = on-failure
PrivateTmp = true
[Install]
WantedBy=multi-user.target


I have been modifying the following Ansible role which works for Centos 7, but trying to get it to work for Centos 6 so need to get the Clamd freshclam service file in place for Centos 6:

https://github.com/geerlingguy/ansible-role-clamav

Regards,

Will
[https://avatars3.githubusercontent.com/u/481677?s=400&v=4]<https://github.com/geerlingguy/ansible-role-clamav>
geerlingguy/ansible-role-clamav: Ansible Role - GitHub<https://github.com/geerlingguy/ansible-role-clamav>
Ansible Role: ClamAV. Installs ClamAV on RedHat/CentOS and Debian/Ubuntu Linux servers. Requirements. None. Role Variables. Available variables are listed below, along with default values (see defaults/main.yml):. clamav_packages: - clamav - clamav-base - clamav-daemon
github.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20201126/162bf697/attachment.htm>


More information about the clamav-users mailing list