mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 10:23:17 +00:00

Also creates a ZIP for non-Admin (per-user) installs. WIX requires the license file to have a .txt or .rtf extension so I added the .txt extension. I've taken the opportunity to migrate the 3rd party licenses to a COPYING subdirectory and have added licensing details to the README.md file. To build the installer, install WIX and simply run `cpack -C Release` Also removed the explicit --config option from the clamav-clamonacc.service file because it should not be required and isn't being generated correctly when using autotools anyways, especially after changes in this commit.
17 lines
671 B
SYSTEMD
17 lines
671 B
SYSTEMD
# clamonacc systemd service file primarily the work of ChadDevOps & Aaron Brighton
|
|
# See: https://medium.com/@aaronbrighton/installation-configuration-of-clamav-antivirus-on-ubuntu-18-04-a6416bab3b41#a340
|
|
|
|
[Unit]
|
|
Description=ClamAV On-Access Scanner
|
|
Documentation=man:clamonacc(8) man:clamd.conf(5) https://www.clamav.net/documents
|
|
Requires=clamav-daemon.service
|
|
After=clamav-daemon.service syslog.target network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
ExecStartPre=/bin/bash -c "while [ ! -S /run/clamav/clamd.ctl ]; do sleep 1; done"
|
|
ExecStart=@prefix@/sbin/clamonacc -F --log=/var/log/clamav/clamonacc.log --move=/root/quarantine
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|