Commit b69107a8 authored by Ecklory's avatar Ecklory

Fix use triggers

parent 5c0fc967
......@@ -183,7 +183,7 @@
</item_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{Template App Moloch:systemd.service.restart[{#SERVICE}].last()} = 1</expression>
<expression>{Template App Moloch:systemd.service.restart[{#SERVICE}].last()} &lt;&gt; 0</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>{#SERVICE} service has restarted</name>
......@@ -199,7 +199,7 @@
<tags/>
</trigger_prototype>
<trigger_prototype>
<expression>{Template App Moloch:systemd.service.status[{#SERVICE}].last()} = 1</expression>
<expression>{Template App Moloch:systemd.service.status[{#SERVICE}].last()} &lt;&gt; 0</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>{#SERVICE} service not running</name>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment