User manual
Installing Koha's Zebra Search Engine
zebrasry daemon
The Zebra Server is usually run in the background as a daemon. In this section we
learn how to setup zebrasry
as a daemon and how to set it up as a service that can
be included in the system's start -up profile. Once again, we see how things are easier
on Debian or Ubuntu than on openSuSE.
Zebrasrv daemon on Debian or Ubuntu
Koha ships with a script,
koha- zebra -ctl . sh that can run
zebrasry in the
background as a daemon. This script uses the
daemon
command to start, stop, or
restart Zebra.
You will need to ensure that the daemon package is installed:
linux -4yut: /home /koha # sudo apt -get install daemon
The script
koha- zebra -ctl . sh
can be found under the
bin folder under Koha's
configuration folder:
linux-4yut:/home/koha # cd /etc/koha-dev/bin/
linux-4yut:/etc/koha-dev/bin # vi koha-zebra-ctl.sh
Koha's Zebra daemon script can be set up as a service and configured in the system
start -up profile. This way we ensure that
zebrasry
starts automatically when the
machine reboots. To set up the script as a service we create a symbolic link to it from
the
/etc /init . d/ folder:
linux -4yut: /home /koha # sudo In -s / etc /koha -dev /bin /koha- zebra -ctl.sh /
etc /init.d /koha- zebra - daemon
Let us test this zebrasry
service by starting it:
linux -4yut: /home /koha # sudo /etc /init.d /koha- zebra - daemon start
Starting Zebra Server
Let us try a restart:
linux -4yut: /home /koha # sudo /etc /init.d /koha- zebra - daemon restart
Restarting the Zebra Server
And finally let us try a
stop operation:
linux -4yut: /home /koha # sudo /etc /init.d /koha- zebra - daemon stop
Stopping Zebra Server
To setup this service in the start -up profile, we use the
update -rc . d command:
linux -4yut: /home /koha # sudo update -rc.d koha- zebra - daemon defaults
[44]