From 92609b536bab76aeca8b3337ee733da1dedd22e3 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Wed, 15 Oct 2014 02:42:04 +0100 Subject: Fix sleep bodge when stop is immediately followed by start --- debian/plptools.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/plptools.init b/debian/plptools.init index 6124c9b..3463d86 100644 --- a/debian/plptools.init +++ b/debian/plptools.init @@ -64,6 +64,7 @@ case "$1" in echo "I don't know how to unmount a FUSE filing system on this OS" >&2 exit 1 fi + sleep 1 # in case we're restarted immediately afterwards start-stop-daemon --stop --retry HUP/5/TERM/1 --quiet \ --exec "$PLPFUSE" && \ echo -n "done" || echo -n "already stopped" @@ -84,7 +85,6 @@ case "$1" in ;; restart|force-reload) $0 stop - sleep 1 $0 start ;; status) -- cgit v1.2.3