@@ -, +, @@ connections to be set in koha-conf.xml 75 4 --- debian/scripts/koha-plack | 13 ++++++++++++- etc/koha-conf.xml | 3 +++ 2 files changed, 15 insertions(+), 1 deletion(-) --- a/debian/scripts/koha-plack +++ a/debian/scripts/koha-plack @@ -74,7 +74,18 @@ start_plack() _check_and_fix_perms $instancename - STARMANOPTS="-M FindBin --max-requests 50 --workers 2 \ + PLACK_MAX_REQUESTS="50" + PLACK_WORKERS="2" + + if [[ $(xmlstarlet sel -t -m '//plack_max_requests' -v . < /etc/koha/sites/${instancename}/koha-conf.xml) ]]; then + PLACK_MAX_REQUESTS="$(xmlstarlet sel -t -m '//plack_max_requests' -v . < /etc/koha/sites/${instancename}/koha-conf.xml)" + fi + + if [[ $(xmlstarlet sel -t -m '//plack_workers' -v . < /etc/koha/sites/${instancename}/koha-conf.xml) ]]; then + PLACK_WORKERS="$(xmlstarlet sel -t -m '//plack_workers' -v . < /etc/koha/sites/${instancename}/koha-conf.xml)" + fi + + STARMANOPTS="-M FindBin --max-requests ${PLACK_MAX_REQUESTS} --workers ${PLACK_WORKERS} \ --user=${instancename}-koha --group ${instancename}-koha \ --pid ${PIDFILE} \ --daemonize \ --- a/etc/koha-conf.xml +++ a/etc/koha-conf.xml @@ -138,5 +138,8 @@ __PAZPAR2_TOGGLE_XML_POST__ __FONT_DIR__/DejaVuSans-BoldOblique.ttf + 50 + 2 + --