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." ;; *)