From 708231858f6a087b21495acd9af603962661c400 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 5 Dec 2017 16:46:25 +0100 Subject: [PATCH] TT#26513 Pass --retry=5 to start-stop-daemon and avoid sleeping Change-Id: I8221d1b48b9d3d76f1421f47f6dc02c509b4d7bb --- debian/ngcp-rtpengine-daemon.init | 3 +-- debian/ngcp-rtpengine-recording-daemon.init | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/debian/ngcp-rtpengine-daemon.init b/debian/ngcp-rtpengine-daemon.init index a4e39cadb..62a5a9778 100755 --- a/debian/ngcp-rtpengine-daemon.init +++ b/debian/ngcp-rtpengine-daemon.init @@ -196,7 +196,7 @@ case "$1" in stop) log_daemon_msg "Stopping $DESC" "$NAME" start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \ - --exec "$DAEMON" + --retry 5 --exec "$DAEMON" if [ "$?" -ne 0 ]; then return $? fi @@ -218,7 +218,6 @@ case "$1" in ;; restart|force-reload) $0 stop - sleep 1 $0 start ;; status) diff --git a/debian/ngcp-rtpengine-recording-daemon.init b/debian/ngcp-rtpengine-recording-daemon.init index ac07a84c2..77d0da233 100755 --- a/debian/ngcp-rtpengine-recording-daemon.init +++ b/debian/ngcp-rtpengine-recording-daemon.init @@ -102,7 +102,7 @@ case "$1" in stop) log_daemon_msg "Stopping $DESC" "$NAME" start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \ - --exec "$DAEMON" + --retry 5 --exec "$DAEMON" if [ "$?" -ne 0 ]; then return $? fi