summaryrefslogtreecommitdiffstats
path: root/package/mongoose
diff options
context:
space:
mode:
authorDavide Viti <zinosat@tiscali.it>2013-11-25 14:55:25 +0100
committerPeter Korsgaard <peter@korsgaard.com>2013-11-26 12:42:37 +0100
commitbe1cf3bad4317508f8268556943b4449863697fc (patch)
tree5a7421aa7fdb298c60a5ee3481c4942074811c39 /package/mongoose
parent54b369c51fef40d1515c8f8815f3de464cf52800 (diff)
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 <d.viti@infosolution.it> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/mongoose')
-rwxr-xr-xpackage/mongoose/S85mongoose4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/mongoose/S85mongoose b/package/mongoose/S85mongoose
index ff7da05b0..dc042d0e2 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