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
changes/26/30626/1
Guillem Jover 7 years ago
parent d273d66731
commit 48a9ff4f9e

@ -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' %]

Loading…
Cancel
Save