|
Lines 89-94
start_plack()
Link Here
|
| 89 |
[ -z $PLACK_MAX_REQUESTS ] && PLACK_MAX_REQUESTS="50" |
89 |
[ -z $PLACK_MAX_REQUESTS ] && PLACK_MAX_REQUESTS="50" |
| 90 |
PLACK_WORKERS=$(run_safe_xmlstarlet $instancename plack_workers) |
90 |
PLACK_WORKERS=$(run_safe_xmlstarlet $instancename plack_workers) |
| 91 |
[ -z $PLACK_WORKERS ] && PLACK_WORKERS="2" |
91 |
[ -z $PLACK_WORKERS ] && PLACK_WORKERS="2" |
|
|
92 |
PLACK_BACKLOG=$(run_safe_xmlstarlet $instancename plack_backlog) |
| 93 |
[ -z $PLACK_BACKLOG ] && PLACK_BACKLOG=$(( $PLACK_WORKERS * $PLACK_MAX_REQUESTS / 2 )) |
| 92 |
|
94 |
|
| 93 |
instance_user="${instancename}-koha" |
95 |
instance_user="${instancename}-koha" |
| 94 |
|
96 |
|
|
Lines 100-106
start_plack()
Link Here
|
| 100 |
daemonize="--daemonize" |
102 |
daemonize="--daemonize" |
| 101 |
logging="--access-log /var/log/koha/${instancename}/plack.log \ |
103 |
logging="--access-log /var/log/koha/${instancename}/plack.log \ |
| 102 |
--error-log /var/log/koha/${instancename}/plack-error.log" |
104 |
--error-log /var/log/koha/${instancename}/plack-error.log" |
| 103 |
max_requests_and_workers="--max-requests ${PLACK_MAX_REQUESTS} --workers ${PLACK_WORKERS}" |
105 |
max_requests_and_workers="--max-requests ${PLACK_MAX_REQUESTS} --workers ${PLACK_WORKERS} --backlog ${PLACK_BACKLOG}" |
| 104 |
|
106 |
|
| 105 |
# Enable debugger? |
107 |
# Enable debugger? |
| 106 |
if [ "$debugger" = "yes" ] && [ "$environment" = "development" ]; then |
108 |
if [ "$debugger" = "yes" ] && [ "$environment" = "development" ]; then |