3 # $Id: test-server.init,v 1.6 2008-09-29 15:50:01 mike Exp $
5 # This is a startup/shutdown script for the ZOOM-Perl test-server,
6 # suitable for use in a SysV-style init directory such as /etc/init.d
7 # (on Debian systems) and /etc/rc.d/init.d (on Red Hat systems). This
8 # is configured to run on z3950.indexdata.com -- if you want to run it
9 # somewhere else, you'll probably need to tweak it to suit your
13 logfile=/var/log/zoom-perl-test-server
14 pidfile=/var/run/zoom-perl-test-server.pid
18 if [ -f $pidfile ]; then
19 echo "ZOOM-Perl test server seems to be already running"
22 echo "Starting ZOOM-Perl test server"
23 test -f $logfile && mv $logfile $logfile.old
24 ( cd /home/mike/ZOOM-Perl/archive/test-server
25 zebrasrv-2.0 -c test-server.cfg @:2100 > $logfile 2>&1 < /dev/null &
30 if [ ! -f $pidfile ]; then
31 echo "ZOOM-Perl test server does not seem to be running"
34 echo "Stopping ZOOM-Perl test server"
42 echo "Usage: $0 start|stop|restart" >&2