mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 11:04:42 +00:00
Monit starttimeout (#6213)
This commit is contained in:
parent
a9f4b4b520
commit
ed7afdb77d
@ -42,6 +42,13 @@
|
||||
<advanced>true</advanced>
|
||||
<help><![CDATA[The timeout for custom program checks.]]></help>
|
||||
</field>
|
||||
<field>
|
||||
<id>service.starttimeout</id>
|
||||
<label>Start Timeout</label>
|
||||
<type>text</type>
|
||||
<advanced>true</advanced>
|
||||
<help><![CDATA[The timeout for custom program to start a service.]]></help>
|
||||
</field>
|
||||
<field>
|
||||
<id>service.address</id>
|
||||
<label>Address</label>
|
||||
|
||||
@ -231,6 +231,13 @@
|
||||
<MaximumValue>86400</MaximumValue>
|
||||
<ValidationMessage>Program Timeout needs to be an integer value between 1 and 86400</ValidationMessage>>
|
||||
</timeout>
|
||||
<starttimeout type="IntegerField">
|
||||
<default>30</default>
|
||||
<Required>N</Required>
|
||||
<MinimumValue>0</MinimumValue>
|
||||
<MaximumValue>86400</MaximumValue>
|
||||
<ValidationMessage>Start Delay needs to be an integer value between 0 and 86400</ValidationMessage>
|
||||
</starttimeout>
|
||||
<address type="HostnameField">
|
||||
<Required>N</Required>
|
||||
</address>
|
||||
|
||||
@ -135,7 +135,7 @@ check {{ service.type }} {{ service.name }} {{ path }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if service.start|default('') != '' %}
|
||||
start program = "{{ service.start }}"
|
||||
start program = "{{ service.start }}" with timeout {{service.starttimeout|default('30')}} seconds
|
||||
{% endif %}
|
||||
{% if service.stop|default('') != '' %}
|
||||
stop program = "{{ service.stop }}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user