From 48a9ff4f9ed383a79d5a1a8ea7032585573a037b Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Wed, 12 Jun 2019 23:06:00 +0200 Subject: [PATCH] TT#60062 Use the actual ngcp-licensed service name While using ngcp-licensed is not incorrect, it is an alias generated by systemd only when the main service file is enabled. To make the check more robust we should check for the actual canonical service name which is ngcp-license-client.service. Change-Id: I512563d247104474482c485ec1780bdaf32034a2 --- templates/510_init-daemons-ngcp.yaml.tt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/510_init-daemons-ngcp.yaml.tt2 b/templates/510_init-daemons-ngcp.yaml.tt2 index 512b4ce..e94a2b1 100644 --- a/templates/510_init-daemons-ngcp.yaml.tt2 +++ b/templates/510_init-daemons-ngcp.yaml.tt2 @@ -45,7 +45,7 @@ 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: + 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' %]