Bugzilla – Attachment 102755 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 we are not going to loop indefinitely
Bug-24993-Make-sure-we-are-not-going-to-loop-indef.patch (text/plain), 945 bytes, created by
Liz Rea
on 2020-04-10 18:20:06 UTC
(
hide
)
Description:
Bug 24993: Make sure we are not going to loop indefinitely
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2020-04-10 18:20:06 UTC
Size:
945 bytes
patch
obsolete
>From 916a53408b2076fda62ce7caf2fc8fe1436ec61f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 8 Apr 2020 11:57:06 +0200 >Subject: [PATCH] Bug 24993: Make sure we are not going to loop indefinitely > >Signed-off-by: Liz Rea <wizzyrea@gmail.com> >--- > debian/scripts/koha-sip | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/debian/scripts/koha-sip b/debian/scripts/koha-sip >index fd3c538a06..2a4ea791c8 100755 >--- a/debian/scripts/koha-sip >+++ b/debian/scripts/koha-sip >@@ -154,8 +154,15 @@ restart_sip() > local noLF="-n" > [ "$verbose" != "no" ] && noLF="" > echo $noLF `stop_sip ${name}` >+ >+ MAX_ITERATION=10 > while is_sip_running ${name}; do >+ ((i++)) >+ if [ $MAX_ITERATION -lt $i ]; then >+ break >+ fi > sleep 1; >+ > done > echo $noLF `start_sip ${name}` > else >-- >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