Bugzilla – Attachment 102823 Details for
Bug 24993
koha-sip --restart is too fast, doesn't always start SIP
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24993: Make sure SIP server is stopped before restarting it
Bug-24993-Make-sure-SIP-server-is-stopped-before-r.patch (text/plain), 1.11 KB, created by
Katrin Fischer
on 2020-04-13 12:06:08 UTC
(
hide
)
Description:
Bug 24993: Make sure SIP server is stopped before restarting it
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-04-13 12:06:08 UTC
Size:
1.11 KB
patch
obsolete
>From 405bfb0c5ae033f2c1f41d74552706686dfecc0b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <wizzyrea@gmail.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24993
:
101876
|
102255
|
102280
|
102546
|
102648
|
102682
|
102752
|
102753
|
102754
|
102755
|
102756
| 102823 |
102824
|
102825