From: Davide Viti Date: Mon, 25 Nov 2013 13:55:25 +0000 (+0100) Subject: mongoose: wait some time between stop and start of the service X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=be1cf3bad4317508f8268556943b4449863697fc;p=buildroot.git 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: Davide Viti Signed-off-by: Peter Korsgaard --- diff --git a/package/mongoose/S85mongoose b/package/mongoose/S85mongoose index ff7da05b08..dc042d0e2e 100755 --- a/package/mongoose/S85mongoose +++ b/package/mongoose/S85mongoose @@ -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