From d2173c5df98b346832736cca70f28a64ac4f3851 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 21 May 2025 16:48:01 -0300 Subject: [PATCH] Bug 39961: (follow-up) Make `koha-disable` stop all queues Content-Type: text/plain; charset=utf-8 This patch applies the same logic to `koha-disable`. Signed-off-by: Magnus Enger Signed-off-by: Marcel de Rooy --- debian/scripts/koha-disable | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/scripts/koha-disable b/debian/scripts/koha-disable index c8d699435f..fffb119a07 100755 --- a/debian/scripts/koha-disable +++ b/debian/scripts/koha-disable @@ -72,9 +72,11 @@ do if is_indexer_running $name; then koha-indexer --stop $name fi - if is_worker_running $name; then - koha-worker --stop $name - fi + for queue in $(get_worker_queues); do + if is_worker_running $name $queue; then + koha-worker --queue $queue --stop $name + fi + done elif [ "$RET" = 2 ]; then warn "Error: Apache configuration file not present for instance $name." else -- 2.39.5