mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
23 lines
412 B
Bash
23 lines
412 B
Bash
|
proc="resmoke.py"
|
||
|
if [ "Windows_NT" = "$OS" ]; then
|
||
|
check_resmoke() {
|
||
|
resmoke_info=$(wmic process | grep resmoke.py)
|
||
|
}
|
||
|
while [ 1 ]; do
|
||
|
check_resmoke
|
||
|
if ! [[ "$resmoke_info" =~ .*"$proc".* ]]; then
|
||
|
break
|
||
|
fi
|
||
|
sleep 5
|
||
|
done
|
||
|
else
|
||
|
get_pids() { proc_pids=$(pgrep -f $1); }
|
||
|
while [ 1 ]; do
|
||
|
get_pids $proc
|
||
|
if [ -z "$proc_pids" ]; then
|
||
|
break
|
||
|
fi
|
||
|
sleep 5
|
||
|
done
|
||
|
fi
|