X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zebra%2Finit-script;h=cf321a8298a0bc9704736613259b14d1435b9a54;hb=dcfbf4aafc0857477f9970b8e825b30a3aa624bb;hp=3f3811201efef272656ef675ea73d25f5ea3999d;hpb=15e2c059264c5b8931f48a84cab5d0afc554ec6c;p=irspy-moved-to-github.git diff --git a/zebra/init-script b/zebra/init-script index 3f38112..cf321a8 100755 --- a/zebra/init-script +++ b/zebra/init-script @@ -1,4 +1,14 @@ #! /bin/sh +### BEGIN INIT INFO +# Provides: irspy-zebra +# Required-Start: $local_fs $remote_fs $network $named $time +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Controls the irspy-zebra daemon +# Description: Controls the ID IRSpy Zebra server daemon +# /usr/bin/zebrasrv-2.0 . +### END INIT INFO # # This is a startup/shutdown script for IRSpy's Zebra server, suitable @@ -20,6 +30,8 @@ pidfile=/var/run/irspy-zebra.pid case "`hostname`" in nigiri | xeno | rafa | test) IRSPYDIR=/usr/local/src/git/irspy/;; shawarma|kafta) IRSPYDIR=/home/mike/cvs/irspy/;; + berwick ) IRSPYDIR=/home/indexdata/irspy/ ;; + your-development-machine ) IRSPYDIR=/home/foobar/indexdata/irspy/ logfile=$IRSPYDIR/irspy-zebra @@ -39,7 +51,7 @@ case "$1" in # Let log rotation take care of backups #test -f $logfile && mv -f $logfile $logfile.old ( cd $IRSPYDIR/zebra - zebrasrv-2.0 -f yazserver.xml < /dev/null >> $logfile 2>&1 & + zebrasrv-2.0 -f $(pwd)/yazserver.xml < /dev/null >> $logfile 2>&1 & echo $! > $pidfile ) ;;