OP#785 add control for clamd service config file

This commit is contained in:
2026-09-22 13:37:25 +02:00
parent 905676c71a
commit 66173a7573
4 changed files with 42 additions and 1 deletions

19
templates/clamd_svc.erb Normal file
View File

@@ -0,0 +1,19 @@
################################################################################
### 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
TimeoutStartSec=420
[Install]
WantedBy = multi-user.target