3 # chkconfig: 2345 85 15
4 # description: Redhat init.d zebrasrv script.
5 # processname: zebrasrv
7 # source function library
8 . /etc/rc.d/init.d/functions
10 zebradir=/home/meta/silkeborg/db
11 srv=/home/meta/silkeborg/zmbol/index/zmbolsrv
14 if [ ! -d ${zebradir} ]; then
15 echo "No directory $zebradir"
19 if [ ! -f ${srv} ]; then
28 echo -n "Starting zebrasrv "
30 ${srv} -l srv.log -u $user tcp:@:210 &
35 echo -n "Shutting zebrasrv "
37 kill `cat $zebradir/zebrasrv.pid`
46 echo "Usage: zebrasrv {start|stop|restart|reload}"