diff --git a/templates/411_process-ngcp-pro.yaml.tt2 b/templates/411_process-ngcp-pro.yaml.tt2 index 2c2a1ea..306544c 100644 --- a/templates/411_process-ngcp-pro.yaml.tt2 +++ b/templates/411_process-ngcp-pro.yaml.tt2 @@ -28,7 +28,7 @@ process: running: true monit: - running: true + running: [% general.process_handler == 'monit' ? 'true' : 'false' %] ngcp-licensed: running: [% general.license_key != '' || general.anonymous_usage_statistics == 'yes' ? 'true' : 'false' %] diff --git a/templates/510_init-daemons-ngcp.yaml.tt2 b/templates/510_init-daemons-ngcp.yaml.tt2 index fa24306..24cf151 100644 --- a/templates/510_init-daemons-ngcp.yaml.tt2 +++ b/templates/510_init-daemons-ngcp.yaml.tt2 @@ -143,11 +143,11 @@ service: enabled: false running: [% node_state == 'active' && janus.enable == "yes" && general.ngcp_type != 'spce' ? 'true' : 'false' %] -[% IF general.ngcp_type != 'spce' -%] monit.service: - enabled: true - running: true + enabled: [% general.process_handler == 'monit' ? 'true' : 'false' %] + running: [% general.process_handler == 'monit' ? 'true' : 'false' %] +[% IF general.ngcp_type != 'spce' -%] heartbeat.service: enabled: true running: true