@@ -, +, @@
connections to be set in koha-conf.xml
75
4
---
debian/scripts/koha-plack | 21 ++++++++++++++++++++-
debian/templates/koha-conf-site.xml.in | 5 +++++
etc/koha-conf.xml | 7 ++++++-
3 files changed, 31 insertions(+), 2 deletions(-)
--- 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 \
@@ -247,6 +258,14 @@ adjust_paths()
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/debian/templates/koha-conf-site.xml.in
+++ a/debian/templates/koha-conf-site.xml.in
@@ -317,5 +317,10 @@ __END_SRU_PUBLICSERVER__
__KOHA_CONF_DIR__/sms_send/
+
+
+ 50
+ 2
+
--- a/etc/koha-conf.xml
+++ a/etc/koha-conf.xml
@@ -143,6 +143,11 @@ __PAZPAR2_TOGGLE_XML_POST__
- __KOHA_CONF_DIR__/sms_send/
+ __KOHA_CONF_DIR__/sms_send/
+
+
+ 50
+ 2
+
--