From 69904bbe1a4e501d9d5b3c751cdcb2cc95e0be9e Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Wed, 12 Jun 2019 21:41:51 +0200 Subject: [PATCH] TT#60062 Add ngcp-licensed to process and services to check Change-Id: Ica206a5977a02d4a2f6b9d46402d994d1b952697 --- templates/411_process-ngcp-pro.yaml.tt2 | 3 +++ templates/510_init-daemons-ngcp.yaml.tt2 | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/templates/411_process-ngcp-pro.yaml.tt2 b/templates/411_process-ngcp-pro.yaml.tt2 index 7f0bac5..fac84fc 100644 --- a/templates/411_process-ngcp-pro.yaml.tt2 +++ b/templates/411_process-ngcp-pro.yaml.tt2 @@ -30,6 +30,9 @@ process: monit: running: true + ngcp-licensed: + running: [% general.license_key != '' || general.anonymous_usage_statistics == 'yes' ? 'true' : 'false' %] + ngcp-faxserver: running: [% is_proxy && node_state == 'active' ? 'true' : 'false' %] diff --git a/templates/510_init-daemons-ngcp.yaml.tt2 b/templates/510_init-daemons-ngcp.yaml.tt2 index 53088b5..512b4ce 100644 --- a/templates/510_init-daemons-ngcp.yaml.tt2 +++ b/templates/510_init-daemons-ngcp.yaml.tt2 @@ -45,6 +45,10 @@ service: enabled: [% general.process_handler == 'none' && kamailio.proxy.start == "yes" ? 'true' : 'false' %] running: [% is_proxy && node_state == 'active' && kamailio.proxy.start == "yes" ? 'true' : 'false' %] + ngcp-licensed.service: + enabled: [% general.process_handler == 'none' && (general.license_key != '' || general.anonymous_usage_statistics == 'yes') ? 'true' : 'false' %] + running: [% general.license_key != '' || general.anonymous_usage_statistics == 'yes' ? 'true' : 'false' %] + ngcp-mediator.service: enabled: [% general.process_handler == 'none' && mediator.enable == 'yes' ? 'true' : 'false' %] running: [% is_proxy && node_state == 'active' && mediator.enable == 'yes' ? 'true' : 'false' %]