From 2dbd7b4de3481a7796dd2962e4b792d8e754784b 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 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 --- 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.24.0