Unix & Linux Asked by Walter on September 13, 2020
I am using clamav in conjuction with c-icap to filter content with squid. I am also using the safebrowsing functionality of clamav to block access to bad domains. For some reason or another, clamav (clamd), suddenly stops running and I see that the c-icap service cannot connect to socket clamd socket. However, I don’t see anything in the log files indicating why clamav suddenly stopped.
I checked the following basics:
1. clamav logs (syslog output)
2. free space
3. dmesg
[Unit]
Description = clamd scanner (%i) daemon
After = syslog.target nss-lookup.target network.target
[Service]
Type = simple
ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf --nofork=yes
#Restart = on-failure
Restart = always
PrivateTmp = true
PIDFile=/var/run/clamav/%i.pid
[Install]
[email protected]
WantedBy=multi-user.target
Any ideas what may be causing clamav to suddenly stop?
Set Type = forking
in your clamd.service
file.
Based on personal experience and the description of simple
vs forking
found here
Answered by Brian A. Henning on September 13, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP