From d4763aba140d701f3323cf75d413eaef65d386b1 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 3 May 2018 16:08:33 +0200 Subject: [PATCH] TT#36351 Use modern ngcp-check-active Change-Id: I88da19e2d474071f34ea7b23da9a60daf4fd2cbf --- debian/ngcp-rtpengine-daemon.init | 8 +++----- debian/ngcp-rtpengine-recording-daemon.init | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/debian/ngcp-rtpengine-daemon.init b/debian/ngcp-rtpengine-daemon.init index ff1bf28ed..5e483225a 100755 --- a/debian/ngcp-rtpengine-daemon.init +++ b/debian/ngcp-rtpengine-daemon.init @@ -136,11 +136,9 @@ fi case "$1" in start) set +e - if [ -x "/usr/sbin/ngcp-check_active" ]; then - /usr/sbin/ngcp-check_active -q - status=$? - case "${status}" in - 0|3) + if [ -x "/usr/sbin/ngcp-check-active" ]; then + case "$(ngcp-check-active -v)" in + active|transition) log_action_msg "Active node or transition." ;; *) diff --git a/debian/ngcp-rtpengine-recording-daemon.init b/debian/ngcp-rtpengine-recording-daemon.init index 4664efdd2..b36e7901e 100755 --- a/debian/ngcp-rtpengine-recording-daemon.init +++ b/debian/ngcp-rtpengine-recording-daemon.init @@ -67,11 +67,9 @@ fi case "$1" in start) set +e - if [ -x "/usr/sbin/ngcp-check_active" ]; then - /usr/sbin/ngcp-check_active -q - status=$? - case "${status}" in - 0|3) + if [ -x "/usr/sbin/ngcp-check-active" ]; then + case "$(ngcp-check-active -v)" in + active|transition) log_action_msg "Active node or transition." ;; *)