aboutsummaryrefslogtreecommitdiff
path: root/control/deploy-control-node
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2011-04-20 21:04:56 +0300
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2011-04-20 21:04:56 +0300
commitc3293420007ffe2f5b0997a08bf32e06afbb397a (patch)
tree42fcdc8d986bf84f12c04ded66a934a0a57cf489 /control/deploy-control-node
parent13cc3ddc0e0cd9e22f5164c57230904c48ce75bf (diff)
Add check and warning about outstanding mirror ops before killing service.
Diffstat (limited to 'control/deploy-control-node')
-rwxr-xr-xcontrol/deploy-control-node10
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