User manual
Chapter 3
zebrasry daemon on
openSuSE
The daemon
command is not available on openSuSE. This is because the
corresponding package
daemon
is not included in openSuSE repositories for
copyright reasons.
However there are alternatives to the daemon command:
startproc:
For starting a process
killproc:
For stopping a process
We can modify the
koha- zebra -ctl . sh
file to work on openSuSE by replacing
the daemon
command with
startproc and
killproc
and suitably modifying the
options supplied to the commands.
The modified statements in
koha- zebra- ctl . sh
script may look like this:
start)
echo "Starting Zebra Server"
startproc -1 $ERRLOG $ZEBRASRV -f $KOHA_CONF
stop)
echo "Stopping Zebra Server"
killproc -TERM $ ZEBRASRV
restart)
echo "Restarting the Zebra Server"
killproc -TERM $ ZEBRASRV
startproc -1 $ ERRLOG $ZEBRASRV -f $KOHA_CONF
You will need to reinstall Koha once you have modified the script
to ensure that the modified koha - zebra- ct1. sh file is installed
in Koha's configuration folder - /etc /koha - dev /bin / .
Once the script is modified and installed, we can set it up as a service by creating 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
[45]