[Koha-bugs] [Bug 18617] New: starting plack on reboot can fail on non-standard apache configs

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 17 00:54:59 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18617

            Bug ID: 18617
           Summary: starting plack on reboot can fail on non-standard
                    apache configs
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: System Administration
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: liz at catalyst.net.nz
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com

If you have a non-standard Koha apache configuration, for example you have
virtualhosts in separate files instead of all in one file (you might do this if
you were using Let's Encrypt, among other reasons) koha-list --plack --enabled
can fail because it is looking for apache configurations in only one file
(/etc/apache2/sites-available/instance.conf).

I propose to make the check for plack enabled work more like the email enabled,
where we touch a file in /var/lib/koha/instance when the service is enabled,
and remove it when it is disabled. I'm happy to leave the current checking
alone and include this as a bracer to the existing belt.

To do:

edit koha-plack to make enable and disable put a file in /var/lib/koha/instance
called plack.enable

edit koha-functions.sh to include checking for the file as part of
is_plack_enabled

There are probably other things to do as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list