2014-03-28 17:04:21 +01:00
|
|
|
[Unit]
|
2021-04-08 10:27:46 +02:00
|
|
|
Description=Clam AntiVirus userspace daemon
|
|
|
|
Documentation=man:clamd(8) man:clamd.conf(5) https://www.clamav.net/documents/
|
|
|
|
After=network.target
|
|
|
|
# Check for database existence
|
|
|
|
ConditionPathExistsGlob=/var/lib/clamav/main.{c[vl]d,inc}
|
|
|
|
ConditionPathExistsGlob=/var/lib/clamav/daily.{c[vl]d,inc}
|
2014-03-28 17:04:21 +01:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
ExecStart=/usr/sbin/clamd
|
2019-10-25 16:54:38 +02:00
|
|
|
TimeoutStartSec=5min
|
2021-04-08 10:27:46 +02:00
|
|
|
Restart=always
|
2020-05-12 20:00:54 +02:00
|
|
|
ExecReload=/bin/kill -USR2 $MAINPID
|
2014-03-28 17:04:21 +01:00
|
|
|
;User=vscan
|
|
|
|
;Group=vscan
|
|
|
|
;PrivateTmp=yes
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|