diff --git a/templates/411_process-ngcp-pro.yaml.tt2 b/templates/411_process-ngcp-pro.yaml.tt2 index fac84fc..2c2a1ea 100644 --- a/templates/411_process-ngcp-pro.yaml.tt2 +++ b/templates/411_process-ngcp-pro.yaml.tt2 @@ -44,3 +44,28 @@ process: snmpd: running: true + + janus: + running: [% janus.enable == "yes" && node_state == 'active' ? 'true' : 'false' %] + +command: + "pgrep -c -n -f '[r]tcengine.js'": +[% IF rtcengine.enable == "yes" && node_state == 'active' -%] + exit-status: 0 + stdout: + - "1" +[% ELSE -%] + exit-status: 1 + stdout: [] +[% END -%] + stderr: [] + + "pgrep -c -n -f '[c]omx-fileshare.js'": +[% IF fileshare.enable == "yes" && node_state == 'active' -%] + exit-status: 0 + stdout: + - "1" +[% ELSE -%] + exit-status: 1 + stdout: [] +[% END -%] diff --git a/templates/510_init-daemons-ngcp.yaml.tt2 b/templates/510_init-daemons-ngcp.yaml.tt2 index e94a2b1..969aa25 100644 --- a/templates/510_init-daemons-ngcp.yaml.tt2 +++ b/templates/510_init-daemons-ngcp.yaml.tt2 @@ -129,4 +129,16 @@ service: ngcp-license-client.service: enabled: true running: true + [% END -%] + ngcp-rtcengine.service: + enabled: false + running: [% node_state == 'active' && rtcengine.enable == "yes" && general.ngcp_type != 'spce' ? 'true' : 'false' %] + + ngcp-comx-fileshare-service.service: + enabled: false + running: [% node_state == 'active' && fileshare.enable == "yes" && general.ngcp_type != 'spce' ? 'true' : 'false' %] + + janus.service: + enabled: false + running: [% node_state == 'active' && janus.enable == "yes" && general.ngcp_type != 'spce' ? 'true' : 'false' %]