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