From 1710a8e83802f020edf30760f783b6c4e959566c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 2 Apr 2020 12:36:16 +0200 Subject: [PATCH] Bug 24993: Make sure SIP server is stopped before restarting it Signed-off-by: Liz Rea --- debian/scripts/koha-sip | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/scripts/koha-sip b/debian/scripts/koha-sip index 00d337f075..fd3c538a06 100755 --- a/debian/scripts/koha-sip +++ b/debian/scripts/koha-sip @@ -154,6 +154,9 @@ restart_sip() local noLF="-n" [ "$verbose" != "no" ] && noLF="" echo $noLF `stop_sip ${name}` + while is_sip_running ${name}; do + sleep 1; + done echo $noLF `start_sip ${name}` else if [ "$verbose" != "no" ]; then -- 2.11.0