Bugzilla – Attachment 102546 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), 901 bytes, created by
Jonathan Druart
on 2020-04-08 09:57:31 UTC
(
hide
)
Description:
Bug 24993: Make sure we are not going to loop indefinitely
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-04-08 09:57:31 UTC
Size:
901 bytes
patch
obsolete
>From 568aa2dbcd1fd3b68b800072f5febd91ed026573 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 > >--- > 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.20.1
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