From 7dafe9137a643ff4f8ffec82ca3a015ff0240ce0 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 (cherry picked from commit 69904bbe1a4e501d9d5b3c751cdcb2cc95e0be9e) --- 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 c4bec43..211819d 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 2a12dea..0c69b6b 100644 --- a/templates/510_init-daemons-ngcp.yaml.tt2 +++ b/templates/510_init-daemons-ngcp.yaml.tt2 @@ -49,6 +49,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-license-client.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' %] + mediator.service: enabled: [% general.process_handler == 'none' && mediator.enable == 'yes' ? 'true' : 'false' %] running: [% is_proxy && node_state == 'active' && mediator.enable == 'yes' ? 'true' : 'false' %]