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>
(cherry picked from commit d2ffae92a7)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Tomas Cohen Arazi 2025-05-21 16:48:01 -03:00 committed by Paul Derscheid
parent 5a6ad66117
commit 79f69e7e4c
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
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