Support new "irspy_data" log-level to register information written to
[irspy-moved-to-github.git] / zebra / init-script
index b6b5e13..3f38112 100755 (executable)
@@ -1,6 +1,5 @@
 #! /bin/sh
 
-# $Id: init-script,v 1.6 2007-03-21 13:30:41 mike Exp $
 #
 # This is a startup/shutdown script for IRSpy's Zebra server, suitable
 # for use in a SysV-style init directory such as /etc/init.d (on
 
 # zebrasrv-2.0 may be in /usr/local/bin, hence this slight security hole
 PATH=/bin:/usr/bin:/usr/local/bin/
-logfile=/var/log/irspy-zebra
+logfile=/var/log/irspy-zebra.log
 pidfile=/var/run/irspy-zebra.pid
 
 case "`hostname`" in
-    xeno|rafa|test) IRSPYDIR=/usr/local/src/cvs/irspy/;;
-    shawarma) IRSPYDIR=/home/mike/cvs/irspy/;;
+    nigiri | xeno | rafa | test) IRSPYDIR=/usr/local/src/git/irspy/;;
+    shawarma|kafta) IRSPYDIR=/home/mike/cvs/irspy/;;
+    your-development-machine ) 
+       IRSPYDIR=/home/foobar/indexdata/irspy/
+       logfile=$IRSPYDIR/irspy-zebra
+       pidfile=$IRSPYDIR/irspy-zebra.pid
+       ;;
     *) echo "$0: unsupported host `hostname`" >&2
        exit 1;;
 esac
@@ -55,3 +59,4 @@ case "$1" in
        echo "Usage: $0 start|stop|restart" >&2
         ;;
 esac
+