Bugzilla – Attachment 40234 Details for
Bug 14361
koha-restart-zebra fails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14361 - koha-restart-zebra fails and probably breaks upgrade
Bug-14361---koha-restart-zebra-fails-and-probably-.patch (text/plain), 2.03 KB, created by
Mason James
on 2015-06-17 12:43:41 UTC
(
hide
)
Description:
Bug 14361 - koha-restart-zebra fails and probably breaks upgrade
Filename:
MIME Type:
Creator:
Mason James
Created:
2015-06-17 12:43:41 UTC
Size:
2.03 KB
patch
obsolete
>From b8abc3074221516fa3a0e71521d7ad8349a57dba Mon Sep 17 00:00:00 2001 >From: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no> >Date: Mon, 8 Jun 2015 11:12:03 +0200 >Subject: [PATCH] Bug 14361 - koha-restart-zebra fails and probably breaks > upgrade >Content-Type: text/plain; charset="utf-8" > >This patch fixes the koha-restart-zebra and koha-stop-zebra scripts >by adding pidfiles folder to the test is_zebra_running. >It also adds pidfiles to the test is_indexer_running so that >koha-rebuild-zebra will work properly. > >Test plan: >1) check if zebrasrv is running, get pid of zebrasrv > ps ax | grep zebrasrv >2) In my case, there was also a warning on the about.pl page on a fresh > install: Error message from Zebra: 1011 (bad credentials) >3) try to restart zebra > koha-restart-zebra instancename > You will get a msg : > Zebra does not appear to have been running for instancename > Starting Zebra server for instancename >4) check again if zebrasrv is running > ps ax | grep zebrasrv > and see that pid has not changed, thus it is not restarted >5) Apply patch >6) repeat 4) and watch now how pid has changed > If there was a warning on about.pl it should now be gone > >Signed-off-by: Mason James <mtj@kohaaloha.com> >--- > debian/scripts/koha-functions.sh | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/debian/scripts/koha-functions.sh b/debian/scripts/koha-functions.sh >index 8090fc5..c3a5d53 100755 >--- a/debian/scripts/koha-functions.sh >+++ b/debian/scripts/koha-functions.sh >@@ -100,6 +100,7 @@ is_zebra_running() > local instancename=$1 > > if daemon --name="$instancename-koha-zebra" \ >+ --pidfiles="/var/run/koha/$instancename/" \ > --user="$instancename-koha.$instancename-koha" \ > --running ; then > return 0 >@@ -113,6 +114,7 @@ is_indexer_running() > local instancename=$1 > > if daemon --name="$instancename-koha-indexer" \ >+ --pidfiles="/var/run/koha/$instancename/" \ > --user="$instancename-koha.$instancename-koha" \ > --running ; then > return 0 >-- >2.1.4
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 14361
:
39984
|
40234
|
40235