summaryrefslogtreecommitdiffstats
path: root/src/ceph/qa/qa_scripts/openstack/ceph_install_w_ansible/staller.sh
blob: 2e560024cb8c4cda887bbbadb28136d3d7416bdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/bash
cmd_wait=$1
shift
sites=$*
donebit=0
while [ $donebit -ne 1 ]; do
    sleep 10
    donebit=1
    for rem in $sites; do
        rval=`ssh $rem ps aux | grep $cmd_wait | wc -l` 
        if [ $rval -gt 0 ]; then
            donebit=0
        fi
    done
done