From 405bfb0c5ae033f2c1f41d74552706686dfecc0b 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 Sometimes doing koha-sip --restart instance happens too fast and the SIP server is not started. To test: - have SIP enabled and running for your instance - issue a restart, make sure it restarts sudo koha-sip --restart inst Signed-off-by: Liz Rea Signed-off-by: Katrin Fischer --- 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