fd5e7f3
--- ./clamonacc/clamav-clamonacc.service.in.clamonacc-service	2022-05-05 22:36:27.572671129 +0100
fd5e7f3
+++ ./clamonacc/clamav-clamonacc.service.in	2022-05-05 22:43:05.204324524 +0100
7d22377
@@ -4,14 +4,12 @@
a201bc2
 [Unit]
a201bc2
 Description=ClamAV On-Access Scanner
3bfeeee
 Documentation=man:clamonacc(8) man:clamd.conf(5) https://docs.clamav.net/
a201bc2
-Requires=clamav-daemon.service
a201bc2
-After=clamav-daemon.service syslog.target network.target
a201bc2
+After=clamd@scan.service syslog.target network.target
a201bc2
 
a201bc2
 [Service]
a201bc2
 Type=simple
a201bc2
 User=root
a201bc2
-ExecStartPre=/bin/bash -c "while [ ! -S /run/clamav/clamd.ctl ]; do sleep 1; done"
fd5e7f3
-ExecStart=@prefix@/sbin/clamonacc -F --log=/var/log/clamav/clamonacc.log --move=/root/quarantine
7d22377
+ExecStart=@prefix@/sbin/clamonacc -F --config-file=/etc/clamd.d/scan.conf
a201bc2
 
a201bc2
 [Install]
a201bc2
 WantedBy=multi-user.target