diff --git a/templates/clamd_svc.erb b/templates/clamd_svc.erb index 9eee048..1a43320 100644 --- a/templates/clamd_svc.erb +++ b/templates/clamd_svc.erb @@ -14,6 +14,9 @@ ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf ExecReload=/bin/kill -USR2 $MAINPID Restart = on-failure TimeoutStartSec=420 +MemoryLimit=1024M +CPUQuota=30% +Nice=19 [Install] WantedBy = multi-user.target