From c0a5ac83058bace80eae248145e693ba48dff860 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Fri, 23 Jul 2021 19:06:24 +0200 Subject: [PATCH] TT#132417 Fix ngcp-pushd service test * Switch to use the ngcp-pushd.socket instead of .service, as the later gets triggered by the formed when that is activated. * Mark the .socket unit as enabled only when not using a process_handler, as otherwise it will be managed by the HA system and be disabled. Change-Id: I4a07410fe1c9dc17edde3e10921959a170556e1e (cherry picked from commit 9cd6b395175299a4ded50f65c13d1efb3d565da3) --- templates/510_init-daemons-ngcp.yaml.tt2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/510_init-daemons-ngcp.yaml.tt2 b/templates/510_init-daemons-ngcp.yaml.tt2 index b246b2c..af295ba 100644 --- a/templates/510_init-daemons-ngcp.yaml.tt2 +++ b/templates/510_init-daemons-ngcp.yaml.tt2 @@ -87,8 +87,8 @@ service: enabled: [% general.process_handler == 'none' && prosody.enable == 'yes' ? 'true' : 'false' %] running: {{if and [% is_proxy && prosody.enable == "yes" ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} - ngcp-pushd.service: - enabled: [% is_lb && pushd.enable == "yes" ? 'true' : 'false' %] + ngcp-pushd.socket: + enabled: [% general.process_handler == 'none' && is_lb && pushd.enable == "yes" ? 'true' : 'false' %] running: [% is_lb && pushd.enable == "yes" ? 'true' : 'false' %] redis-server.service: