This allows you to simulate one or more simultaneously running mgmt processes. It should be easy to use by following the test cases provided.
7 lines
197 B
Bash
7 lines
197 B
Bash
# NOTE: boiler plate to wait on mgmt; source with: . wait.sh; should NOT be +x
|
|
for j in `jobs -p`
|
|
do
|
|
[ $j -eq `pidof etcd` ] && continue # don't wait for etcd
|
|
wait $j # wait for mgmt job $j
|
|
done
|