<br><br><div class="gmail_quote">2009/11/27 Marty <span dir="ltr"><<a href="mailto:ontariowolf64@yahoo.com">ontariowolf64@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">Can somebody please send me contents of koha-zebra-daemon in /etc/init.d<br>I have a standard koha installation, on Debian, with koha-zebra-ctl.sh in /usr/share/koha/bin<br>
For some reason I still have not been able to start the zebra server except manually and that just won't do. I have followed all the instructions, but I think something is wrong with the koha-zebra-daemon file. I cannot start the zebra server by doing /etc/init.d/koha-zebra-daemon start. Please?<br>
Thanks, <br><font color="#888888">Marty<br></font></td></tr></tbody></table><div class="hm"><br>
<hr size="1">Make your browsing faster, safer, and easier with the new Internet Explorer® 8. Optimized for Yahoo! <a href="http://downloads.yahoo.com/ca/internetexplorer/" target="_blank"><b>Get it Now for Free! </b></a></div>
<br>_______________________________________________<br>
Koha mailing list<br>
<a href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a><br>
<a href="http://lists.katipo.co.nz/mailman/listinfo/koha" target="_blank">http://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
<br></blockquote></div><div><br></div>Are you sure it is "/etc/init.d/koha-zebra-daemon start" ?<div><br></div><div>Following are the steps according to manual, please check them...<br><div><br></div><div><br></div>
<div><br></div><div><div>Configuration of Zebra Server</div><div><br></div><div>Make zebra server to start at system startup</div><div><br></div><div>$ sudo ln -sv /usr/share/koha/bin/koha-zebra-ctl.sh /etc/init.d/zebra-server</div>
<div><br></div><div>$ sudo update-rc.d zebra-server defaults</div><div><br></div><div>$ sudo /etc/init.d/zebra-server start</div><div><br></div><div>Make zebraqueue daemon to start at system startup</div><div><br></div><div>
$ sudo ln -sv /usr/share/koha/bin/koha-zebraqueue-ctl.sh /etc/init.d/zebraqueue-daemon</div><div><br></div><div>$ sudo update-rc.d zebraqueue-daemon defaults</div><div><br></div><div>$ sudo /etc/init.d/zebraqueue-daemon start</div>
<div><br></div>Following are the scripts on MY SYSTEM.<br clear="all"><br></div><div><br></div><div><div>abhishek@europa:~$ cat /etc/init.d/zebraqueue-daemon</div><div>#!/bin/bash</div><div>USER=koha</div><div>GROUP=koha</div>
<div>DBNAME=koha</div><div>NAME=koha-zebraqueue-ctl-$DBNAME</div><div>LOGDIR=/var/log/koha</div><div>PERL5LIB=/usr/share/koha/lib</div><div>KOHA_CONF=/etc/koha/koha-conf.xml</div><div>ERRLOG=$LOGDIR/koha-zebraqueue.err</div>
<div>STDOUT=$LOGDIR/koha-zebraqueue.log</div><div>OUTPUT=$LOGDIR/koha-zebraqueue-output.log</div><div>export KOHA_CONF</div><div>export PERL5LIB</div><div>ZEBRAQUEUE=/usr/share/koha/bin/<a href="http://zebraqueue_daemon.pl">zebraqueue_daemon.pl</a></div>
<div><br></div><div>test -f $ZEBRAQUEUE || exit 0</div><div><br></div><div>OTHERUSER=''</div><div>if [[ $EUID -eq 0 ]]; then</div><div> OTHERUSER="--user=$USER.$GROUP"</div><div>fi</div><div><br></div>
<div>case "$1" in</div><div> start)</div><div> echo "Starting Zebraqueue Daemon"</div><div> daemon --name=$NAME --errlog=$ERRLOG --stdout=$STDOUT --output=$OUTPUT --verbose=1 --respawn --delay=30 $OTHERUSER -- perl -I $PERL5LIB $ZEBRAQUEUE -f $KOHA_CONF</div>
<div> ;;</div><div> stop)</div><div> echo "Stopping Zebraqueue Daemon"</div><div> daemon --name=$NAME --errlog=$ERRLOG --stdout=$STDOUT --output=$OUTPUT --verbose=1 --respawn --delay=30 $OTHERUSER --stop -- perl -I $PERL5LIB $ZEBRAQUEUE -f $KOHA_CONF</div>
<div> ;;</div><div> restart)</div><div> echo "Restarting the Zebraqueue Daemon"</div><div> daemon --name=$NAME --errlog=$ERRLOG --stdout=$STDOUT --output=$OUTPUT --verbose=1 --respawn --delay=30 $OTHERUSER --restart -- perl -I $PERL5LIB $ZEBRAQUEUE -f $KOHA_CONF</div>
<div> ;;</div><div> *)</div><div> echo "Usage: /etc/init.d/$NAME {start|stop|restart}"</div><div> exit 1</div><div> ;;</div><div>esac</div><div>--------------------------------------</div>
<div><br></div><div><div>abhishek@europa:~$ cat /etc/init.d/zebra-server</div><div>#!/bin/bash</div><div>USER=koha</div><div>GROUP=koha</div><div>DBNAME=koha</div><div>NAME=koha-zebra-ctl.$DBNAME</div><div>LOGDIR=/var/log/koha</div>
<div>ERRLOG=$LOGDIR/koha-zebradaemon.err</div><div>STDOUT=$LOGDIR/koha-zebradaemon.log</div><div>OUTPUT=$LOGDIR/koha-zebradaemon-output.log</div><div>KOHA_CONF=/etc/koha/koha-conf.xml</div><div>RUNDIR=/var/run/koha/zebradb</div>
<div>LOCKDIR=/var/lock/koha/zebradb</div><div># you may need to change this depending on where zebrasrv is installed</div><div>ZEBRASRV=/usr/bin/zebrasrv</div><div>ZEBRAOPTIONS="-v none,fatal,warn"</div><div><br>
</div><div>test -f $ZEBRASRV || exit 0</div><div><br></div><div>OTHERUSER=''</div><div>if [[ $EUID -eq 0 ]]; then</div><div> OTHERUSER="--user=$USER.$GROUP"</div><div>fi</div><div><br></div><div>case "$1" in</div>
<div> start)</div><div> echo "Starting Zebra Server"</div><div><br></div><div> # create run and lock directories if needed;</div><div> # /var/run and /var/lock are completely cleared at boot</div>
<div> # on some platforms</div><div> if [[ ! -d $RUNDIR ]]; then</div><div> umask 022</div><div> mkdir -p $RUNDIR</div><div> if [[ $EUID -eq 0 ]]; then</div><div> chown $USER:$GROUP $RUNDIR</div>
<div> fi</div><div> fi</div><div> if [[ ! -d $LOCKDIR ]]; then</div><div> umask 022</div><div> mkdir -p $LOCKDIR</div><div> mkdir -p $LOCKDIR/biblios</div><div> mkdir -p $LOCKDIR/authorities</div>
<div> if [[ $EUID -eq 0 ]]; then</div><div> chown -R $USER:$GROUP $LOCKDIR</div><div> fi</div><div> fi</div><div><br></div><div> daemon --name=$NAME --errlog=$ERRLOG --stdout=$STDOUT --output=$OUTPUT --verbose=1 --respawn --delay=30 $OTHERUSER -- $ZEBRASRV $ZEBRAOPTIONS -f $KOHA_CONF</div>
<div> ;;</div><div> stop)</div><div> echo "Stopping Zebra Server"</div><div> daemon --name=$NAME --errlog=$ERRLOG --stdout=$STDOUT --output=$OUTPUT --verbose=1 --respawn --delay=30 $OTHERUSER --stop -- $ZEBRASRV -f $KOHA_CONF</div>
<div> ;;</div><div> restart)</div><div> echo "Restarting the Zebra Server"</div><div> daemon --name=$NAME --errlog=$ERRLOG --stdout=$STDOUT --output=$OUTPUT --verbose=1 --respawn --delay=30 $OTHERUSER --restart -- $ZEBRASRV -f $KOHA_CONF</div>
<div> ;;</div><div> *)</div><div> echo "Usage: /etc/init.d/$NAME {start|stop|restart}"</div><div> exit 1</div><div> ;;</div><div>esac</div><div><br></div></div>-- <br>With Regards<br>Abhishek Amberkar<br>
<a href="http://www.kohaindia.org/">http://www.kohaindia.org/</a></div><div>RDG Microelectronics Pvt. Ltd.</div><div><br></div></div>