Compare commits

...

5 Commits

Author SHA1 Message Date
9792e3c268 OP#785 revert 2026-09-22 15:16:36 +02:00
5e3dcbbd1b OP#785 temp disable service file control 2026-09-22 15:02:45 +02:00
ab50ce82f2 OP#785 switch MemoryLimit to MemoryMax 2026-09-22 14:59:17 +02:00
dfb9601a5d OP#785 switch MemoryLimit to MemoryMax 2026-09-22 14:30:56 +02:00
dfd2cba657 OP#785 add variables for clamd service limits 2026-09-22 14:00:02 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ class confdroid_clamav::params (
String $cv_concurrentdatabasereload = 'no', String $cv_concurrentdatabasereload = 'no',
String $cv_clamd_max_mem = '512M', String $cv_clamd_max_mem = '512M',
String $cv_clamd_cpu_quota = '30%', String $cv_clamd_cpu_quota = '30%',
String $cv_nice_value = '19' String $cv_nice_value = '19',
String $cv_timeout_start_sec = '420' String $cv_timeout_start_sec = '420'
) { ) {

View File

@@ -14,7 +14,7 @@ ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf
ExecReload=/bin/kill -USR2 $MAINPID ExecReload=/bin/kill -USR2 $MAINPID
Restart = on-failure Restart = on-failure
TimeoutStartSec=<%= @cv_timeout_start_sec %> TimeoutStartSec=<%= @cv_timeout_start_sec %>
MemoryLimit=<%= @cv_clamd_max_mem %> MemoryMax=<%= @cv_clamd_max_mem %>
CPUQuota=<%= @cv_clamd_cpu_quota %> CPUQuota=<%= @cv_clamd_cpu_quota %>
Nice=<%= @cv_nice_value %> Nice=<%= @cv_nice_value %>