[Koha-bugs] [Bug 17467] There should be a koha-zebra script to handle Zebra daemons for instances

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 26 17:28:11 CEST 2017


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

--- Comment #22 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 68624
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68624&action=edit
Bug 17467: (followup) Make koha-zebra handle legacy script names

This patch adds the new koha-zebra script the ability to handle being
called by other script names, for backwards compatibility with the legacy
koha-*-zebra scripts.

It is intended to be used in conjunction with a patch that replaces the old
koha-*-zebra scripts for symbolic links, pointing to the new koha-zebra script.

To test:
- Apply this patch
- Create symbolic links to the new script:
  vagrant at kohadevbox:~$ ln -s kohaclone/debian/scripts/koha-zebra
koha-start-zebra
  vagrant at kohadevbox:~$ ln -s kohaclone/debian/scripts/koha-zebra
koha-stop-zebra
  vagrant at kohadevbox:~$ ln -s kohaclone/debian/scripts/koha-zebra
koha-restart-zebra
- Run:
  $ sudo ./koha-start-zebra kohadev
=> SUCCESS: Same behaviour than the koha-start-zebra script
- Run:
  sudo ./koha-stop-zebra kohadev
=> SUCCESS: Same behaviour than the koha-stop-zebra script
- Run:
  sudo ./koha-restart-zebra kohadev
=> SUCCESS: Same behaviour than the koha-restart-zebra script

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

Signed-off-by: Nick Clemens <nick at bywatersolutions.com>

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


More information about the Koha-bugs mailing list