From: fredrik Date: Sun, 30 Oct 2005 01:47:01 +0000 (+0000) Subject: Wait until the PID file is gone. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=ccc141a39e09ba0ddd163e953a642beb002cccef;p=utils.git Wait until the PID file is gone. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@424 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/autodlctl b/autodlctl index 78ef0e6..1215c65 100755 --- a/autodlctl +++ b/autodlctl @@ -182,6 +182,10 @@ while [ "$done" != y ]; do pid="`cat "$HOME/dc/autodl/run/$tag"`" echo "sending SIGUSR1 to $pid" kill -USR1 "$pid" + while [ -e "$HOME/dc/autodl/run/$tag" ]; do + echo "waiting for it to exit" + sleep 1 + done else echo "could not find pid for $tag" fi