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 247-252 adjust_paths() Link Here
247
    fi
258
    fi
248
}
259
}
249
260
261
get_plack_max_requests() {
262
    xmlstarlet sel -t -v 'yazgfs/config/plack_max_requests' "/etc/koha/sites/$1/koha-conf.xml"
263
}
264
265
get_plack_workers() {
266
    xmlstarlet sel -t -v 'yazgfs/config/plack_workers' "/etc/koha/sites/$1/koha-conf.xml"
267
}
268
250
STARMAN=$(which starman)
269
STARMAN=$(which starman)
251
op=""
270
op=""
252
quiet="no"
271
quiet="no"
(-)a/debian/templates/koha-conf-site.xml.in (+5 lines)
Lines 317-321 __END_SRU_PUBLICSERVER__ Link Here
317
317
318
 <!-- Path to the config file for SMS::Send -->
318
 <!-- Path to the config file for SMS::Send -->
319
 <sms_send_config>__KOHA_CONF_DIR__/sms_send/</sms_send_config>
319
 <sms_send_config>__KOHA_CONF_DIR__/sms_send/</sms_send_config>
320
321
 <!-- Configuration for Plack -->
322
 <plack_max_requests>50</plack_max_requests>
323
 <plack_workers>2</plack_workers>
324
320
</config>
325
</config>
321
</yazgfs>
326
</yazgfs>
(-)a/etc/koha-conf.xml (-2 / +6 lines)
Lines 143-148 __PAZPAR2_TOGGLE_XML_POST__ Link Here
143
 </ttf>
143
 </ttf>
144
144
145
 <!-- Path to the config file for SMS::Send -->
145
 <!-- Path to the config file for SMS::Send -->
146
  <sms_send_config>__KOHA_CONF_DIR__/sms_send/</sms_send_config>
146
 <sms_send_config>__KOHA_CONF_DIR__/sms_send/</sms_send_config>
147
148
 <!-- Configuration for Plack -->
149
 <plack_max_requests>50</plack_max_requests>
150
 <plack_workers>2</plack_workers>
151
147
</config>
152
</config>
148
</yazgfs>
153
</yazgfs>
149
- 

Return to bug 17610