]> www.dolda2000.com Git - utils.git/commitdiff
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 78ef0e697e3b2dc2066d0cb34272305f930ef94c..1215c65a45f9e978dc5d9f39977033f50e66e3e7 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