Browse Source

Fix restart target in initscript, thanks to rémi vila for the report

Christoph Biedl 14 years ago
parent
commit
54ca2ed922
1 changed files with 4 additions and 4 deletions
  1. 4 4
      debian/init.d

+ 4 - 4
debian/init.d

@@ -85,11 +85,11 @@ case "$1" in
 	;;
   restart)
     echo -n "Restarting $DESC: "
-	start-stop-daemon --stop --quiet --pidfile \
-		/var/run/$NAME.pid --exec $DAEMON
+	start-stop-daemon --stop --oknodo --quiet --pidfile /var/run/$NAME.pid \
+		--exec $DAEMON
 	sleep 1
-	start-stop-daemon --start --quiet --pidfile \
-		/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
+	start-stop-daemon --start --oknodo --quiet --pidfile /var/run/$NAME.pid \
+		--exec $DAEMON -- -i "$INTERFACE" $OPTIONS
 	echo "$NAME."
 	;;
   *)