Fix a typo in invirt-vnc-server's init script 0.0.3
authorEvan Broder <broder@mit.edu>
Wed, 29 Oct 2008 02:59:26 +0000 (22:59 -0400)
committerEvan Broder <broder@mit.edu>
Wed, 29 Oct 2008 02:59:26 +0000 (22:59 -0400)
svn path=/trunk/packages/invirt-vnc-server/; revision=1407

debian/changelog
debian/invirt-vnc-server.init

index ca209d5..a08c903 100644 (file)
@@ -1,3 +1,9 @@
+invirt-vnc-server (0.0.3) unstable; urgency=low
+
+  * Fix a typo in the new init script
+
+ -- Evan Broder <broder@mit.edu>  Tue, 28 Oct 2008 22:58:59 -0400
+
 invirt-vnc-server (0.0.2) unstable; urgency=low
 
   * Cleanup the init script to use /lib/init/std-init.sh
 invirt-vnc-server (0.0.2) unstable; urgency=low
 
   * Cleanup the init script to use /lib/init/std-init.sh
index a096c57..e37e47a 100644 (file)
@@ -18,8 +18,8 @@ PACKAGE=invirt-vnc-server
 DESC="The Invirt VNC Proxy Server"
 DAEMON=/usr/sbin/invirt-vnc-server
 DAEMON_ARGS=""
 DESC="The Invirt VNC Proxy Server"
 DAEMON=/usr/sbin/invirt-vnc-server
 DAEMON_ARGS=""
-PIDFILE=/var/run/$NAME.pid
-SCRIPTNAME=/etc/init.d/$NAME
+PIDFILE=/var/run/$PACKAGE.pid
+SCRIPTNAME=/etc/init.d/$PACKAGE
 
 # Exit if the package is not installed
 [ -x "$DAEMON" ] || exit 0
 
 # Exit if the package is not installed
 [ -x "$DAEMON" ] || exit 0
@@ -35,8 +35,8 @@ do_start()
        #   0 if daemon has been started
        #   1 if daemon was already running
        #   2 if daemon could not be started
        #   0 if daemon has been started
        #   1 if daemon was already running
        #   2 if daemon could not be started
-       daemon --running -n $NAME && return 1
-       daemon -r -U -O daemon.info -E daemon.err -n $NAME -U $DAEMON $DAEMON_ARGS || return 2
+       daemon --running -n $PACKAGE && return 1
+       daemon -r -U -O daemon.info -E daemon.err -n $PACKAGE -U $DAEMON $DAEMON_ARGS || return 2
 }
 
 #
 }
 
 #
@@ -49,7 +49,7 @@ do_stop()
        #   1 if daemon was already stopped
        #   2 if daemon could not be stopped
        #   other if a failure occurred
        #   1 if daemon was already stopped
        #   2 if daemon could not be stopped
        #   other if a failure occurred
-       daemon --stop -n $NAME
+       daemon --stop -n $PACKAGE
        RETVAL="$?"
        [ "$RETVAL" = 2 ] && return 2
        # Many daemons don't delete their pidfiles when they exit.
        RETVAL="$?"
        [ "$RETVAL" = 2 ] && return 2
        # Many daemons don't delete their pidfiles when they exit.