_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 \
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"
<!-- Path to the config file for SMS::Send -->
<sms_send_config>__KOHA_CONF_DIR__/sms_send/</sms_send_config>
+
+ <!-- Configuration for Plack -->
+ <plack_max_requests>50</plack_max_requests>
+ <plack_workers>2</plack_workers>
+
</config>
</yazgfs>
</ttf>
<!-- Path to the config file for SMS::Send -->
- <sms_send_config>__KOHA_CONF_DIR__/sms_send/</sms_send_config>
+ <sms_send_config>__KOHA_CONF_DIR__/sms_send/</sms_send_config>
+
+ <!-- Configuration for Plack -->
+ <plack_max_requests>50</plack_max_requests>
+ <plack_workers>2</plack_workers>
+
</config>
</yazgfs>