projects
/
irspy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add alias irspy-dev
[irspy-moved-to-github.git]
/
zebra
/
init-script
diff --git
a/zebra/init-script
b/zebra/init-script
index
db71a91
..
658013e
100755
(executable)
--- a/
zebra/init-script
+++ b/
zebra/init-script
@@
-14,12
+14,14
@@
# zebrasrv-2.0 may be in /usr/local/bin, hence this slight security hole
PATH=/bin:/usr/bin:/usr/local/bin/
# 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
pidfile=/var/run/irspy-zebra.pid
case "`hostname`" in
- nigiri | xeno | rafa | test) IRSPYDIR=/usr/local/src/cvs/irspy/;;
+ nigiri | xeno | rafa | test) IRSPYDIR=/usr/local/src/git/irspy/;;
shawarma|kafta) IRSPYDIR=/home/mike/cvs/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
your-development-machine )
IRSPYDIR=/home/foobar/indexdata/irspy/
logfile=$IRSPYDIR/irspy-zebra
@@
-39,7
+41,7
@@
case "$1" in
# Let log rotation take care of backups
#test -f $logfile && mv -f $logfile $logfile.old
( cd $IRSPYDIR/zebra
# 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
)
;;
echo $! > $pidfile
)
;;