mirror of https://github.com/Cisco-Talos/clamav
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
700 B
18 lines
700 B
# 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://docs.clamav.net/
|
|
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
|
|
ExecStop=/bin/kill -SIGKILL $MAINPID
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|