From 0d99ad98bbcccebdae110c744a9e753a57dedbca Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 10 Mar 2017 08:43:03 +0100 Subject: [PATCH] sysutils/monit: small fix by @fbrendel --- .../src/opnsense/service/templates/OPNsense/Monit/monitrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sysutils/monit/src/opnsense/service/templates/OPNsense/Monit/monitrc b/sysutils/monit/src/opnsense/service/templates/OPNsense/Monit/monitrc index e6ee60bd3..6fe124651 100644 --- a/sysutils/monit/src/opnsense/service/templates/OPNsense/Monit/monitrc +++ b/sysutils/monit/src/opnsense/service/templates/OPNsense/Monit/monitrc @@ -52,7 +52,11 @@ check {{ service.type }} {{ service.name }} {{ address }} {{ interface }} check {{ service.type }} {{ service.name }} {% else %} {% set path = "with path " ~ service.path %} +{% if service.type == 'custom' %} +check program {{ service.name }} {{ path }} +{% else %} check {{ service.type }} {{ service.name }} {{ path }} +{% endif %} {% endif %} {% if service.start|default('') != '' %} start program = "{{ service.start }}"