Bug 39961: (follow-up) Make `koha-disable` stop all queues

This patch applies the same logic to `koha-disable`.

Signed-off-by: Magnus Enger <magnus@libriotech.no>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Tomas Cohen Arazi 2025-05-21 16:48:01 -03:00 committed by Lucas Gass
parent 45089704fa
commit d2ffae92a7
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 5 additions and 3 deletions

View File

@ -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