Skip to contentSkip to conversation

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

PATCH New Davide Viti 2 participants 2 messages Nov 25, 2013 – Nov 26, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 package/mongoose/S85mongoose | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/mongoose/S85mongoose +2 -2
index ff7da05..dc042d0 100755
@@ -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
Signature · 1 line
1.8.1.2
#1 lore raw

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

Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Davide" == Davide Viti <[email protected]> writes:

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

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard