Add magic init-script comments (I think from John)
[ZOOM-Perl-moved-to-github.git] / archive / test-server / test-server.init
index 474df10..0d30194 100644 (file)
@@ -1,7 +1,5 @@
 #! /bin/sh
 
-# $Id: test-server.init,v 1.5 2008-09-26 13:56:03 mike Exp $
-#
 # This is a startup/shutdown script for the ZOOM-Perl test-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).  This
@@ -9,6 +7,17 @@
 # somewhere else, you'll probably need to tweak it to suit your
 # system's paths.
 
+### BEGIN INIT INFO
+# Provides:   zoom-perl-server
+# Required-Start: $local_fs $remote_fs $network $syslog $named
+# Required-Stop:  $local_fs $remote_fs
+# Default-Start:  2 3 4 5
+# Default-Stop:   0 1 6
+# Short-Description:    ZOOM-Perl test server
+# Description:    Controls the ZOOM-Perl test server
+### END INIT INFO
+
+
 PATH=/bin:/usr/bin
 logfile=/var/log/zoom-perl-test-server
 pidfile=/var/run/zoom-perl-test-server.pid
@@ -22,7 +31,7 @@ case "$1" in
        echo "Starting ZOOM-Perl test server"
        test -f $logfile && mv $logfile $logfile.old
        ( cd /home/mike/ZOOM-Perl/archive/test-server
-         zebrasrv -c test-server.cfg @:2100 > $logfile 2>&1 < /dev/null &
+         zebrasrv-2.0 -c test-server.cfg @:2100 > $logfile 2>&1 < /dev/null &
          echo $! > $pidfile
        )
        ;;