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

(-)a/debian/scripts/koha-plack (-1 / +20 lines)
Lines 74-80 start_plack() Link Here
74
74
75
    _check_and_fix_perms $instancename
75
    _check_and_fix_perms $instancename
76
76
77
    STARMANOPTS="-M FindBin --max-requests 50 --workers 2 \
77
    PLACK_MAX_REQUESTS="50"
78
    PLACK_WORKERS="2"
79
80
    if [[ $(get_plack_max_requests $instancename) ]]; then
81
        PLACK_MAX_REQUESTS="$(get_plack_max_requests $instancename)"
82
    fi
83
84
    if [[ $(get_plack_workers $instancename) ]]; then
85
        PLACK_WORKERS="$(get_plack_workers $instancename)"
86
    fi
87
88
    STARMANOPTS="-M FindBin --max-requests ${PLACK_MAX_REQUESTS} --workers ${PLACK_WORKERS} \
78
                 --user=${instancename}-koha --group ${instancename}-koha \
89
                 --user=${instancename}-koha --group ${instancename}-koha \
79
                 --pid ${PIDFILE} \
90
                 --pid ${PIDFILE} \
80
                 --daemonize \
91
                 --daemonize \
Lines 231-236 set_action() Link Here
231
    fi
242
    fi
232
}
243
}
233
244
245
get_plack_max_requests() {
246
    xmlstarlet sel -t -v 'yazgfs/config/plack_max_requests' "/etc/koha/sites/$1/koha-conf.xml"
247
}
248
249
get_plack_workers() {
250
    xmlstarlet sel -t -v 'yazgfs/config/plack_workers' "/etc/koha/sites/$1/koha-conf.xml"
251
}
252
234
STARMAN=$(which starman)
253
STARMAN=$(which starman)
235
op=""
254
op=""
236
quiet="no"
255
quiet="no"
(-)a/etc/koha-conf.xml (-1 / +3 lines)
Lines 138-142 __PAZPAR2_TOGGLE_XML_POST__ Link Here
138
    <font type="HBO">__FONT_DIR__/DejaVuSans-BoldOblique.ttf</font>
138
    <font type="HBO">__FONT_DIR__/DejaVuSans-BoldOblique.ttf</font>
139
 </ttf>
139
 </ttf>
140
140
141
 <plack_max_requests>50</plack_max_requests>
142
 <plack_workers>2</plack_workers>
143
141
</config>
144
</config>
142
</yazgfs>
145
</yazgfs>
143
- 

Return to bug 17610