Commit be1cf3ba authored by Davide Viti's avatar Davide Viti Committed by Peter Korsgaard
Browse files

mongoose: wait some time between stop and start of the service



Startup script fails to restart the service: 1s delay is enough to fix
this.

Also apply a minor fix of the script name in the usage string

Signed-off-by: default avatarDavide Viti <d.viti@infosolution.it>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 54b369c5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -28,12 +28,12 @@ case "$1" in
  restart|force-reload)
	echo -n "Restarting $DESC: "
	start-stop-daemon -K -x "$DAEMON"
	sleep 1
	start-stop-daemon -S -x "$DAEMON" -b -- $OPTIONS
	echo "$NAME."
	;;
  *)
	N=/etc/init.d/$NAME
	echo "Usage: $N {start|stop|restart|force-reload}" >&2
	echo "Usage: $0 {start|stop|restart|force-reload}" >&2
	exit 1
	;;
esac