Skip to content

Commit

Permalink
queue-manager: fix init.d/vmchecker restart
Browse files Browse the repository at this point in the history
Signed-off-by: Lucian Adrian Grijincu <lucian.grijincu@gmail.com>
  • Loading branch information
luciang committed Mar 28, 2010
1 parent 4f1033b commit 59765a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions etc/init.d/vmchecker
Expand Up @@ -5,6 +5,7 @@ set -e
# Must be a valid filename
NAME=vmchecker-queue-manager
PIDFILE=/var/run/$NAME.pid
CWDIR=/home/courses/so/vmchecker/2010/
#This is the command to be run, give the full pathname
DAEMON=/usr/bin/vmchecker-queue-manager
DAEMON_OPTS="--course_id so --stdin=/dev/null --stdout=queue-manager.log --stderr=queue-manager.log"
Expand All @@ -15,7 +16,7 @@ export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
case "$1" in
start)
echo -n "Starting daemon: "$NAME
start-stop-daemon --start --quiet --chuid $DAEMON_USER --user $DAEMON_USER --pidfile $PIDFILE --background --make-pidfile --exec $DAEMON -- $DAEMON_OPTS
start-stop-daemon --start --quiet --chuid $DAEMON_USER --user $DAEMON_USER --chdir $CWDIR --pidfile $PIDFILE --background --make-pidfile --exec $DAEMON -- $DAEMON_OPTS
echo "."
;;
stop)
Expand All @@ -26,7 +27,7 @@ case "$1" in
restart)
echo -n "Restarting daemon: "$NAME
start-stop-daemon --stop --quiet --chuid $DAEMON_USER --user $DAEMON_USER --oknodo --retry 30 --pidfile $PIDFILE
start-stop-daemon --start --quiet --chuid $DAEMON_USER --user $DAEMON_USER --pidfile $PIDFILE --background --make-pidfile --exec $DAEMON -- $DAEMON_OPTS
start-stop-daemon --start --quiet --chuid $DAEMON_USER --user $DAEMON_USER --chdir $CWDIR --pidfile $PIDFILE --background --make-pidfile --exec $DAEMON -- $DAEMON_OPTS
echo "."
;;
*)
Expand Down

0 comments on commit 59765a9

Please sign in to comment.