From: Mike Taylor Date: Thu, 15 Mar 2007 15:57:23 +0000 (+0000) Subject: Mistake: generalise the old version X-Git-Tag: CPAN-v1.02~54^2~472 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=315474ad0aa6600e5dcc6c36dea2165b3260efaf;hp=8100b0c59b39f895072c9ca1f9e741a6b6d87e19 Mistake: generalise the old version --- diff --git a/zebra/init-script.newshawarma b/zebra/init-script.newshawarma deleted file mode 100755 index c0214a6..0000000 --- a/zebra/init-script.newshawarma +++ /dev/null @@ -1,50 +0,0 @@ -#! /bin/sh - -# $Id: init-script.newshawarma,v 1.1 2007-03-15 15:56:48 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 -# Debian systems) and /etc/rc.d/init.d (on Red Hat systems), like this: -# -# cd /etc/init.d -# sudo ln -s /home/mike/cvs/irspy/zebra/init-script irspy-zebra -# sudo /etc/init.d/irspy-zebra start -# -# You may need to tweak it to suit your system's paths. - - -# 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 -pidfile=/var/run/irspy-zebra.pid - -case "$1" in - start) - if [ -f $pidfile ]; then - echo "IRSpy's Zebra seems to be already running" - exit 1 - fi - echo "Starting IRSpy's Zebra" - # Let log rotation take care of backups - #test -f $logfile && mv -f $logfile $logfile.old - ( cd /home/mike/cvs/irspy/zebra - zebrasrv-2.0 -f yazserver.xml < /dev/null >> $logfile 2>&1 & - echo $! > $pidfile - ) - ;; - stop) - if [ ! -f $pidfile ]; then - echo "IRSpy's Zebra does not seem to be running" - exit 1 - fi - echo "Stopping IRSpy's Zebra" - kill `cat $pidfile` - rm $pidfile - ;; - restart) - $0 stop && $0 start - ;; - *) - echo "Usage: $0 start|stop|restart" >&2 - ;; -esac