Bug 17262: Inject MEMCACHED_* variables into Plack's env
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 6 Sep 2016 19:45:36 +0000 (16:45 -0300)
committerFrédéric Demians <f.demians@tamil.fr>
Thu, 22 Sep 2016 12:37:11 +0000 (14:37 +0200)
commit29df6161ef24e29984d5379640faad24d0e73161
tree15a42cf2b6f16578d69146c21b962e258740cee7
parentf0d508ede6ea32eaf6628d8bb4ce5ce026c25119
Bug 17262: Inject MEMCACHED_* variables into Plack's env

This patch adds two functions to koha-functions.sh to read the MEMCACHED_*
variables from configured instances' apache files (the only source for that
info for now).

It then tweaks koha-plack's start_plack() function so it exports the variables
to env before launching starman.

The patch seems trivial, but it highlights a bigger problem with our Plack integration
as the starman server seems to hang if those environment variables are defined!

Sponsored-by: ByWater Solutions
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
debian/scripts/koha-functions.sh
debian/scripts/koha-plack