View | Details | Raw Unified | Return to bug 31124
Collapse All | Expand All

(-)a/debian/scripts/koha-functions.sh (+7 lines)
Lines 242-247 get_worker_name() Link Here
242
    fi
242
    fi
243
}
243
}
244
244
245
get_worker_queues()
246
{
247
    for queue in default long_tasks; do
248
        echo $queue
249
    done;
250
}
251
245
is_plack_enabled_opac()
252
is_plack_enabled_opac()
246
{
253
{
247
    local instancefile=$1
254
    local instancefile=$1
(-)a/debian/scripts/koha-remove (-5 / +6 lines)
Lines 81-90 eof Link Here
81
    if is_indexer_running $name; then
81
    if is_indexer_running $name; then
82
        koha-indexer --stop $name || /bin/true
82
        koha-indexer --stop $name || /bin/true
83
    fi
83
    fi
84
    # Stop the worker daemon if needed
84
    # Stop the worker daemons if needed
85
    if is_worker_running $name; then
85
    for queue in $(get_worker_queues); do
86
        koha-worker --stop $name || /bin/true
86
        if is_worker_running $name $queue; then
87
    fi
87
            koha-worker  --queue $queue --stop $name|| /bin/true
88
        fi
89
    done
88
    # Stop the Plack server if needed
90
    # Stop the Plack server if needed
89
    if is_plack_running $name; then
91
    if is_plack_running $name; then
90
        koha-plack --stop $name || /bin/true
92
        koha-plack --stop $name || /bin/true
91
- 

Return to bug 31124