From 3f803fdf7e4d2be1e8fde4cd4a91993dae571438 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Tue, 28 Oct 2008 22:59:26 -0400 Subject: [PATCH] Fix a typo in invirt-vnc-server's init script svn path=/trunk/packages/invirt-vnc-server/; revision=1407 --- debian/changelog | 6 ++++++ debian/invirt-vnc-server.init | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index ca209d5..a08c903 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +invirt-vnc-server (0.0.3) unstable; urgency=low + + * Fix a typo in the new init script + + -- Evan Broder 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 diff --git a/debian/invirt-vnc-server.init b/debian/invirt-vnc-server.init index a096c57..e37e47a 100644 --- a/debian/invirt-vnc-server.init +++ b/debian/invirt-vnc-server.init @@ -18,8 +18,8 @@ PACKAGE=invirt-vnc-server 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 @@ -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 - 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 - daemon --stop -n $NAME + daemon --stop -n $PACKAGE RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Many daemons don't delete their pidfiles when they exit. -- 1.7.9.5