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