Wait until the PID file is gone.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sun, 30 Oct 2005 01:47:01 +0000 (01:47 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sun, 30 Oct 2005 01:47:01 +0000 (01:47 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@424 959494ce-11ee-0310-bf91-de5d638817bd

autodlctl

index 78ef0e6..1215c65 100755 (executable)
--- 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