2026-09-22 13:37:25 +02:00
|
|
|
################################################################################
|
|
|
|
|
### clamd.svc created by Puppet, manual changes will be overwritten!!! ###
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
|
Description = clamd scanner (%i) daemon
|
|
|
|
|
Documentation=man:clamd(8) man:clamd.conf(5) https://www.clamav.net/documents/
|
|
|
|
|
After = syslog.target nss-lookup.target network.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type = forking
|
|
|
|
|
ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf
|
|
|
|
|
# Reload the database
|
|
|
|
|
ExecReload=/bin/kill -USR2 $MAINPID
|
|
|
|
|
Restart = on-failure
|
2026-09-22 13:55:00 +02:00
|
|
|
TimeoutStartSec=<%= @cv_timeout_start_sec %>
|
2026-09-22 15:16:36 +02:00
|
|
|
MemoryMax=<%= @cv_clamd_max_mem %>
|
|
|
|
|
CPUQuota=<%= @cv_clamd_cpu_quota %>
|
|
|
|
|
Nice=<%= @cv_nice_value %>
|
2026-09-22 13:37:25 +02:00
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy = multi-user.target
|