Compare commits

..

17 Commits

Author SHA1 Message Date
Jenkins Server
d8143691dd Recommit for updates in build 18 2026-09-22 15:17:48 +02:00
Jenkins Server
4356c549db Merge remote-tracking branch 'origin/master' into jenkins-build-18 2026-09-22 15:16:53 +02:00
9792e3c268 OP#785 revert 2026-09-22 15:16:36 +02:00
Jenkins Server
170e087a3c Recommit for updates in build 17 2026-09-22 15:03:41 +02:00
Jenkins Server
e65c98a16e Merge remote-tracking branch 'origin/master' into jenkins-build-17 2026-09-22 15:03:02 +02:00
5e3dcbbd1b OP#785 temp disable service file control 2026-09-22 15:02:45 +02:00
Jenkins Server
ec9f3674f2 Merge remote-tracking branch 'origin/master' into jenkins-build-16 2026-09-22 14:59:32 +02:00
ab50ce82f2 OP#785 switch MemoryLimit to MemoryMax 2026-09-22 14:59:17 +02:00
Jenkins Server
bda2cfda73 Merge remote-tracking branch 'origin/master' into jenkins-build-15 2026-09-22 14:31:17 +02:00
dfb9601a5d OP#785 switch MemoryLimit to MemoryMax 2026-09-22 14:30:56 +02:00
Jenkins Server
3e0ccc94d0 Recommit for updates in build 14 2026-09-22 14:10:46 +02:00
Jenkins Server
ca315d9f4e Merge remote-tracking branch 'origin/master' into jenkins-build-14 2026-09-22 14:10:06 +02:00
dfd2cba657 OP#785 add variables for clamd service limits 2026-09-22 14:00:02 +02:00
Jenkins Server
63540d9d22 Recommit for updates in build 12 2026-09-22 13:55:53 +02:00
Jenkins Server
97de17ae32 Merge remote-tracking branch 'origin/master' into jenkins-build-12 2026-09-22 13:55:16 +02:00
d0dc4b2fc8 OP#785 add variables for clamd service limits 2026-09-22 13:55:00 +02:00
Jenkins Server
5c456b4c30 Recommit for updates in build 11 2026-09-22 13:54:05 +02:00
3 changed files with 29 additions and 7 deletions

View File

@@ -607,6 +607,24 @@ inherited by all classes except defines.
— —
<div class='inline'> <div class='inline'>
<p>nice value for clamd. This is a number between -20 and 19. The lower the number, the higher the priority. The default is 19, which is the lowest priority.</p> <p>nice value for clamd. This is a number between -20 and 19. The lower the number, the higher the priority. The default is 19, which is the lowest priority.</p>
</div>
</li>
<li>
<span class='name'>cv_timeout_start_sec</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;420&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>timeout for starting the clamd service.</p>
</div> </div>
</li> </li>
@@ -622,7 +640,6 @@ inherited by all classes except defines.
<pre class="lines"> <pre class="lines">
49
50 50
51 51
52 52
@@ -679,10 +696,12 @@ inherited by all classes except defines.
103 103
104 104
105 105
106</pre> 106
107
108</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 49</span> <pre class="code"><span class="info file"># File 'manifests/params.pp', line 50</span>
class confdroid_clamav::params ( class confdroid_clamav::params (
@@ -716,7 +735,8 @@ class confdroid_clamav::params (
String $cv_concurrentdatabasereload = &#39;no&#39;, String $cv_concurrentdatabasereload = &#39;no&#39;,
String $cv_clamd_max_mem = &#39;512M&#39;, String $cv_clamd_max_mem = &#39;512M&#39;,
String $cv_clamd_cpu_quota = &#39;30%&#39;, String $cv_clamd_cpu_quota = &#39;30%&#39;,
String $cv_nice_value = &#39;19&#39; String $cv_nice_value = &#39;19&#39;,
String $cv_timeout_start_sec = &#39;420&#39;
) { ) {
# service # service

View File

@@ -45,6 +45,7 @@
# @param [String] cv_nice_value nice value for clamd. This is a number between # @param [String] cv_nice_value nice value for clamd. This is a number between
# -20 and 19. The lower the number, the higher the priority. The default is # -20 and 19. The lower the number, the higher the priority. The default is
# 19, which is the lowest priority. # 19, which is the lowest priority.
# @param [String] cv_timeout_start_sec timeout for starting the clamd service.
############################################################################## ##############################################################################
class confdroid_clamav::params ( class confdroid_clamav::params (
@@ -78,7 +79,8 @@ 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'
) { ) {
# service # service

View File

@@ -13,8 +13,8 @@ ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf
# Reload the database # Reload the database
ExecReload=/bin/kill -USR2 $MAINPID ExecReload=/bin/kill -USR2 $MAINPID
Restart = on-failure Restart = on-failure
TimeoutStartSec=420 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 %>