Bugzilla – Attachment 95133 Details for
Bug 23949
koha-common.init missing actions for koha-z3950-responder
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23949: Add missing actions for koha-z3950-responder in koha-common.init
Bug-23949-Add-missing-actions-for-koha-z3950-respo.patch (text/plain), 2.38 KB, created by
Jonathan Druart
on 2019-11-07 09:27:39 UTC
(
hide
)
Description:
Bug 23949: Add missing actions for koha-z3950-responder in koha-common.init
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-11-07 09:27:39 UTC
Size:
2.38 KB
patch
obsolete
>From a5b0034acfa449f19b2d75f7a0fb28b634305339 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 1 Nov 2019 15:51:00 -0300 >Subject: [PATCH] Bug 23949: Add missing actions for koha-z3950-responder in > koha-common.init > >This patch makes the init script deal with koha-z3950-responder in --stop >and --restart actions. Currently, only --start calls the script. > >To test: >- Enable the server: > $ koha-z3950-responder --enable kohadev >- Stop koha-common > $ service koha-common stop >=> SUCCESS: No koha-z3950-responder running >- Start koha-common > $ service koha-common start >=> SUCCESS: It is loaded (even if failing because of config issues) >- Stop koha-common > $ service koha-common stop >=> FAIL: It is still running (no --stop issued) >- Repeat for restart >- Apply this patch >- Redo >=> SUCCESS: Things behave as expected! >- Sign off :-D > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > debian/koha-common.init | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/debian/koha-common.init b/debian/koha-common.init >index aeb526f2b6..b173aa6e0d 100755 >--- a/debian/koha-common.init >+++ b/debian/koha-common.init >@@ -60,7 +60,7 @@ do_start() > koha-zebra --start $(koha-list --enabled) > koha-sip --start $(koha-list --enabled --sip) > koha-plack --start $(koha-list --enabled --plack) >- koha-z3950-responder --start $(koha-list --enabled --z3950) >+ koha-z3950-responder --start --quiet $(koha-list --enabled --z3950) > > if [ "$USE_INDEXER_DAEMON" = "yes" ]; then > koha-indexer --start --quiet $(koha-list --enabled) >@@ -76,6 +76,7 @@ do_stop() > koha-zebra --stop $(koha-list) || true > koha-sip --stop $(koha-list --sip) > koha-plack --stop --quiet $(koha-list --enabled --plack) >+ koha-z3950-responder --stop --quiet $(koha-list --enabled --z3950) > > if [ "$USE_INDEXER_DAEMON" = "yes" ]; then > koha-indexer --stop --quiet $(koha-list --enabled) >@@ -89,6 +90,7 @@ do_reload() { > koha-zebra --restart $(koha-list --enabled) > koha-sip --restart $(koha-list --enabled --sip) > koha-plack --restart --quiet $(koha-list --enabled --plack) >+ koha-z3950-responder --restart --quiet $(koha-list --enabled --z3950) > > if [ "$USE_INDEXER_DAEMON" = "yes" ]; then > koha-indexer --restart --quiet $(koha-list --enabled) >-- >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 23949
:
94957
|
95028
|
95068
|
95125
|
95133
|
95134
|
95135
|
95180
|
95181
|
95182