21 lines
572 B
Django/Jinja
21 lines
572 B
Django/Jinja
[Unit]
|
|
Description=ClamAV Daemon (clamd)
|
|
Documentation=man:clamd(8) man:clamd.conf(5) https://www.clamav.net/documents/
|
|
After=network.target
|
|
ConditionPathExistsGlob=/var/lib/clamav/main.{c[vl]d,inc}
|
|
ConditionPathExistsGlob=/var/lib/clamav/daily.{c[vl]d,inc}
|
|
|
|
[Service]
|
|
User=clamav
|
|
Group=clamav
|
|
ExecStart=/usr/sbin/clamd --foreground=true --config-file=/etc/clamav/clamd.conf
|
|
ExecReload=/bin/kill -USR2 $MAINPID
|
|
Restart=on-failure
|
|
TimeoutStartSec=420
|
|
ProtectSystem=full
|
|
PrivateTmp=true
|
|
RuntimeDirectory=clamav
|
|
RuntimeDirectoryMode=0755
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |