Bug 13791: Plack out-of-the-box support on packages
authorTomás Cohen Arazi <tomascohen@theke.io>
Tue, 3 Mar 2015 23:19:40 +0000 (00:19 +0100)
committerTomas Cohen Arazi <tomascohen@unc.edu.ar>
Mon, 24 Aug 2015 16:00:39 +0000 (13:00 -0300)
commit4adc4ee5f8d3e113b62094552be6c80942289c3e
treebb1197e39cbc04faa84f3b6e02d9f8b3dea52287
parentb35dd15a4a64cc13e4c7c9c24e32a56f4cd43c66
Bug 13791: Plack out-of-the-box support on packages

This patch introduces a koha-plack script that controls running Plack
processes for each instance. They are run using 'starman', listening
on a Unix Domain Socket (UDS):

  /var/run/koha/<instancename>/plack.sock

The plack configuration file[1] is expected to be on:

  /etc/koha/plack.psgi

and is installed by the package.

It also adds the following helper functions to koha-functions.sh:

 - is_plack_enabled
 - is_plack_running

Done:
- koha-plack script
- suitable psgi file

To test this patches you will need to install
- starman
- libplack-middleware-reverseproxy-perl

[1] Yeah, a single file. Because we will be relying on multiple mount
points for each "app" (i.e. 'opac' and 'intranet', and 'api' ;-) )

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
debian/koha-common.install
debian/scripts/koha-functions.sh
debian/scripts/koha-plack [new file with mode: 0755]
debian/templates/plack.psgi [new file with mode: 0644]