From ccc141a39e09ba0ddd163e953a642beb002cccef Mon Sep 17 00:00:00 2001 From: fredrik Date: Sun, 30 Oct 2005 01:47:01 +0000 Subject: [PATCH] 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 --- autodlctl | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.11.0