Permalink
Browse files

Fix the init.d script of img

  • Loading branch information...
nono committed Jul 15, 2012
1 parent 85653f3 commit 806940f0369dfd92d4c530b8cfe3339ef100a9c0
Showing with 3 additions and 3 deletions.
  1. +3 −3 init.d/img
View
@@ -37,11 +37,11 @@ case "$1" in
restart)
echo "Restarting $NAME"
- start-stop-daemon --stop --quiet --pidfile $PIDFILE \
- --exec $DAEMON -- $DAEMON_OPTS || true
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE || true
sleep 2
start-stop-daemon --start --background --make-pidfile --quiet \
- --pidfile $PIDFILE --chuid $USER:$USER || true
+ --pidfile $PIDFILE --chuid $USER:$USER \
+ --exec $DAEMON -- $DAEMON_OPTS || true
echo "."
;;

0 comments on commit 806940f

Please sign in to comment.