22 lines
606 B
Django/Jinja
22 lines
606 B
Django/Jinja
[Unit]
|
|
Description=ClamAV virus scanner
|
|
Documentation=man:clamd(1) man:clamd.conf(5) https://docs.clamav.net/
|
|
ConditionPathExistsGlob=/var/lib/clamav/main.{c[vl]d,inc}
|
|
ConditionPathExistsGlob=/var/lib/clamav/daily.{c[vl]d,inc}
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
User=clamav
|
|
Group=clamav
|
|
Type=simple
|
|
ExecStart=/usr/local/sbin/clamd --foreground=true --config-file=/etc/clamav/clamd.conf
|
|
ExecReload=/bin/kill -USR2 $MAINPID
|
|
TimeoutStartSec=300
|
|
RuntimeDirectory=clamav
|
|
RuntimeDirectoryMode=0755
|
|
LogsDirectory=clamav
|
|
LogsDirectoryMode=0750
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|