From 1dff9bf0ca7924f7464b790667b397338bd24388 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 stop all queues This patch applies the same logic to `koha-disable`. --- 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 c8d699435f0..fffb119a076 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.49.0