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

(-)a/debian/scripts/koha-functions.sh (+12 lines)
Lines 234-239 get_loglevels() Link Here
234
234
235
}
235
}
236
236
237
get_max_record_size()
238
{
239
    local instancename=$1
240
    local retval=$(xmlstarlet sel -t -v 'yazgfs/config/zebra_max_record_size' /etc/koha/sites/$instancename/koha-conf.xml)
241
    if [ "$retval" != "" ]; then
242
        echo "$retval"
243
    else
244
        echo "1024"
245
    fi
246
247
}
248
237
get_tmpdir()
249
get_tmpdir()
238
{
250
{
239
    if [ "$TMPDIR" != "" ]; then
251
    if [ "$TMPDIR" != "" ]; then
(-)a/debian/scripts/koha-start-zebra (-1 / +2 lines)
Lines 32-37 start_zebra_instance() Link Here
32
32
33
    # get zebra log levels from koha-conf.xml
33
    # get zebra log levels from koha-conf.xml
34
    local loglevels=$(get_loglevels $instancename)
34
    local loglevels=$(get_loglevels $instancename)
35
    local max_record_size=$(get_max_record_size $instancename)
35
36
36
    echo "Starting Zebra server for $instancename"
37
    echo "Starting Zebra server for $instancename"
37
    touch "/var/log/koha/$instancename/zebra-error.log" \
38
    touch "/var/log/koha/$instancename/zebra-error.log" \
Lines 51-56 start_zebra_instance() Link Here
51
        -- \
52
        -- \
52
        zebrasrv \
53
        zebrasrv \
53
        -v $loglevels \
54
        -v $loglevels \
55
        -k $max_record_size \
54
        -f "/etc/koha/sites/$instancename/koha-conf.xml" && \
56
        -f "/etc/koha/sites/$instancename/koha-conf.xml" && \
55
        return 0 || \
57
        return 0 || \
56
        return 1
58
        return 1
57
- 

Return to bug 18909