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 <wizzyrea@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2020-04-02 12:36:16 +02:00 committed by Martin Renvoize
parent 0004816118
commit 51e504cbfe
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -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