From cad1ee230218c60902fafee2e734e988fbf69379 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 21 May 2025 18:11:20 -0300 Subject: [PATCH] Bug 32736: (follow-up) Make scripts using koha-worker use --all-queues --- debian/scripts/koha-create | 4 +--- debian/scripts/koha-disable | 6 +----- debian/scripts/koha-remove | 6 +----- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create index 6eeb1fe2a9..831745ef3e 100755 --- a/debian/scripts/koha-create +++ b/debian/scripts/koha-create @@ -909,9 +909,7 @@ then koha-zebra --start "$name" # Start workers - for queue in $(get_worker_queues); do - koha-worker --queue $queue --start "$name" - done + koha-worker --all-queues --start "$name" if [ "$USE_INDEXER_DAEMON" = "yes" ]; then # Start Indexer daemon diff --git a/debian/scripts/koha-disable b/debian/scripts/koha-disable index 7abe84512e..4546a81a3d 100755 --- a/debian/scripts/koha-disable +++ b/debian/scripts/koha-disable @@ -72,11 +72,7 @@ do if is_indexer_running $name; then koha-indexer --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 + koha-worker --all-queues --stop $name || /bin/true elif [ "$RET" = 2 ]; then warn "Error: Apache configuration file not present for instance $name." else diff --git a/debian/scripts/koha-remove b/debian/scripts/koha-remove index 486b3ff512..10866aa9ad 100755 --- a/debian/scripts/koha-remove +++ b/debian/scripts/koha-remove @@ -82,11 +82,7 @@ eof koha-indexer --stop $name || /bin/true fi # Stop the worker daemons if needed - for queue in $(get_worker_queues); do - if is_worker_running $name $queue; then - koha-worker --queue $queue --stop $name|| /bin/true - fi - done + koha-worker --all-queues --stop $name || /bin/true # Stop the Plack server if needed if is_plack_running $name; then koha-plack --stop $name || /bin/true -- 2.50.1 (Apple Git-155)