From e0e67fc80d304f87229c49ae5c951144bf7b3198 Mon Sep 17 00:00:00 2001 From: loicgasser Date: Thu, 10 Oct 2013 18:31:19 +0200 Subject: [PATCH] sleep for 1 sec before starting again --- deploy/hooks/post-restore-code | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy/hooks/post-restore-code b/deploy/hooks/post-restore-code index 3032a281..a47ca47a 100755 --- a/deploy/hooks/post-restore-code +++ b/deploy/hooks/post-restore-code @@ -47,6 +47,7 @@ echo "replace sphinx config file ..." cp $BASEDIR/index/sphinx.conf /etc/sphinxsearch echo "starting sphinx service ..." +sleep 1 sudo -u sphinxsearch /etc/init.d/sphinxsearch start END=$(date +%s) DIFF=$(( $END - $START ))