@@ -, +, @@ connections to be set in koha-conf.xml 75 4 --- debian/scripts/koha-plack | 21 ++++++++++++++++++++- etc/koha-conf.xml | 3 +++ 2 files changed, 23 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 [[ $(get_plack_max_requests $instancename) ]]; then + PLACK_MAX_REQUESTS="$(get_plack_max_requests $instancename)" + fi + + if [[ $(get_plack_workers $instancename) ]]; then + PLACK_WORKERS="$(get_plack_workers $instancename)" + fi + + STARMANOPTS="-M FindBin --max-requests ${PLACK_MAX_REQUESTS} --workers ${PLACK_WORKERS} \ --user=${instancename}-koha --group ${instancename}-koha \ --pid ${PIDFILE} \ --daemonize \ @@ -231,6 +242,14 @@ set_action() fi } +get_plack_max_requests() { + xmlstarlet sel -t -v 'yazgfs/config/plack_max_requests' "/etc/koha/sites/$1/koha-conf.xml" +} + +get_plack_workers() { + xmlstarlet sel -t -v 'yazgfs/config/plack_workers' "/etc/koha/sites/$1/koha-conf.xml" +} + STARMAN=$(which starman) op="" quiet="no" --- 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 + --