From: Davide Viti Date: Mon, 25 Nov 2013 14:55:25 +0100 Subject: [Buildroot] [PATCH 1/1] mongoose: wait some time between stop and start of the service Message-ID: <1385387725-1733-1-git-send-email-d.viti@infosolution.it> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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 --- package/mongoose/S85mongoose | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/mongoose/S85mongoose b/package/mongoose/S85mongoose index ff7da05..dc042d0 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 -- 1.8.1.2