]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
mongoose: wait some time between stop and start of the service
authorDavide Viti <zinosat@tiscali.it>
Mon, 25 Nov 2013 13:55:25 +0000 (14:55 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 26 Nov 2013 11:42:37 +0000 (12:42 +0100)
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 <d.viti@infosolution.it>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/mongoose/S85mongoose

index ff7da05b087e8f400826db9c010237d2c0318561..dc042d0e2eb38ac98c7fce04d9b4e9b89fd2d753 100755 (executable)
@@ -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