From c9ec729cdf645e5f37c2139eb9c370cecaa71672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A9veloppeur=20=C3=A9gar=C3=A9?= Date: Sun, 31 May 2015 13:05:07 +0200 Subject: [PATCH] add pause after stop --- conf/diaspora_ynh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/diaspora_ynh b/conf/diaspora_ynh index 6160887..79323a3 100644 --- a/conf/diaspora_ynh +++ b/conf/diaspora_ynh @@ -198,7 +198,9 @@ case "$1" in restart|force-reload) [ "$VERBOSE" != no ] && log_daemon_msg "Restarting $DESC" "$NAME" do_stop - case "$?" in + ret=$? + sleep 5 + case "$ret" in 0|1) do_start case "$?" in