From 95d37479a510a42d8b8d4a197bbf1f025e9109d1 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 1 Nov 2019 15:51:00 -0300 Subject: [PATCH] Bug 23949: Add missing actions for koha-z3950-responder in koha-common.init Content-Type: text/plain; charset=utf-8 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 Signed-off-by: Jonathan Druart Signed-off-by: Marcel de Rooy --- 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