From 863d74f91548e27564279722639fd88b14fe43e2 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 1 Mar 2023 16:04:25 -0300 Subject: [PATCH] Bug 33108: Make init handle koha-es-indexer Signed-off-by: Nick Clemens Bug 33108: (follow-up) Fix typo Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 84460798f0b064086cf805549eaca1007c656128) Signed-off-by: Martin Renvoize --- debian/koha-common.init | 6 ++++++ debian/scripts/koha-remove | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/debian/koha-common.init b/debian/koha-common.init index bc00c76a9b..4f0bae90e4 100755 --- a/debian/koha-common.init +++ b/debian/koha-common.init @@ -70,6 +70,8 @@ do_start() if [ "$USE_INDEXER_DAEMON" = "yes" ]; then koha-indexer --start --quiet $(koha-list --enabled) fi + + koha-es-indexer --start --quiet $(koha-list --enabled --elasticsearch) } # @@ -90,6 +92,8 @@ do_stop() if [ "$USE_INDEXER_DAEMON" = "yes" ]; then koha-indexer --stop --quiet $(koha-list --enabled) fi + + koha-es-indexer --stop --quiet $(koha-list --enabled --elasticsearch) } # @@ -108,6 +112,8 @@ do_reload() { if [ "$USE_INDEXER_DAEMON" = "yes" ]; then koha-indexer --restart --quiet $(koha-list --enabled) fi + + koha-es-indexer --restart --quiet $(koha-list --enabled --elasticsearch) } # diff --git a/debian/scripts/koha-remove b/debian/scripts/koha-remove index 7270661bc4..a6653e02f8 100755 --- a/debian/scripts/koha-remove +++ b/debian/scripts/koha-remove @@ -93,6 +93,10 @@ eof if is_sip_running $name; then koha-sip --stop $name || /bin/true fi + # Stop the ES indexing daemon if needed + if is_es_indexer_running $name; then + koha-es-indexer --stop $name || /bin/true + fi instancefile=$(get_apache_config_for $name) le_opacdomain=$(letsencrypt_get_opacdomain_for $name) -- 2.39.5