From ca8ee5170ebe63a5a104c689800f8f5a64b4124a 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 | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/templates/411_process-ngcp-pro.yaml.tt2 b/templates/411_process-ngcp-pro.yaml.tt2 index 16a318d..b05f690 100644 --- a/templates/411_process-ngcp-pro.yaml.tt2 +++ b/templates/411_process-ngcp-pro.yaml.tt2 @@ -40,6 +40,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 d7e8dbe..5706c2f 100644 --- a/templates/510_init-daemons-ngcp.yaml.tt2 +++ b/templates/510_init-daemons-ngcp.yaml.tt2 @@ -88,6 +88,12 @@ service: enabled: [% general.process_handler == 'none' ? 'true' : 'false' %] running: [% is_proxy && node_state == 'active' ? 'true' : 'false' %] [% END -%] +[% IF general.license_key != '' || general.anonymous_usage_statistics == 'yes' -%] + + ngcp-license-client: + enabled: [% general.process_handler == 'none' ? 'true' : 'false' %] + running: true +[% END -%] [% IF mediator.enabled == 'yes' -%] mediator: