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 9cd6b39517)
mr9.5.2
Guillem Jover 4 years ago
parent 99efd45e15
commit c0a5ac8305

@ -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:

Loading…
Cancel
Save