[Koha-bugs] [Bug 18617] 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 02:02:33 CEST 2017


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

--- Comment #1 from Liz Rea <liz at catalyst.net.nz> ---
Created attachment 63493
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=63493&action=edit
Bug 18617 - starting plack on reboot can fail on non-standard apache configs

To test:
apply this patch
copy debian/scripts/koha-functions.sh to /usr/share/koha/bin
copy debian/scripts/koha-plack to /usr/sbin

create a dummy instance if you need to (koha-create --create-db whatever)
enable plack - koha-plack --enable whatever
check for existence of /var/lib/koha/whatever/plack.enabled
do a koha-list --enabled --plack and your instance should be listed as enabled.
rename your /etc/apache2/sites-available/whatever.conf to something else
do a koha-list --enabled --plack - it should still be enabled
do a koha-plack --disable whatever - it should remove
/var/lib/koha/whatever/plack.enabled
do a koha-list --enabled --plack - it should not be listed.

Note:
This does not deal with the issue of disabling plack not doing the right thing
for config files that are not "/etc/apache2/sites-available/whatever.conf" -
this only ensures that koha-list --enabled and --disabled reports correctly in
that circumstance.

-- 
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