diff options
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2011-04-20 21:04:56 +0300 |
---|---|---|
committer | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2011-04-20 21:04:56 +0300 |
commit | c3293420007ffe2f5b0997a08bf32e06afbb397a (patch) | |
tree | 42fcdc8d986bf84f12c04ded66a934a0a57cf489 | |
parent | 13cc3ddc0e0cd9e22f5164c57230904c48ce75bf (diff) |
Add check and warning about outstanding mirror ops before killing service.
-rwxr-xr-x | control/deploy-control-node | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/control/deploy-control-node b/control/deploy-control-node index 1472cf7..7b3070a 100755 --- a/control/deploy-control-node +++ b/control/deploy-control-node @@ -21,6 +21,16 @@ function header() { } header "Deploying linaro-android-mirror" +running_repos=`ps ax|grep bin/repo|grep -v grep` +if [ -n "$running_repos" ]; then + echo "There appear to be mirror operations in progress currently:" + echo $running_repos + echo + echo "Press Ctrl+C and ensure all outstanding operations are completed" + echo "Press Enter to continue anyway" + read dummy +fi + sudo kill `cat /home/git-mirror/service.pid` sleep 2 bzr branch lp:linaro-android-mirror linaro-android-mirror.new |