Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions sbin/stop-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,20 @@ sbin="`cd "$sbin"; pwd`"
# Stop the slaves, then the master
"$sbin"/stop-slaves.sh
"$sbin"/stop-master.sh

if [ "$1" == "--wait" ]
then
printf "Waiting for workers to shut down..."
while true
do
running=`$sbin/slaves.sh ps -ef | grep -v grep | grep deploy.worker.Worker`
if [ -z "$running" ]
then
printf "\nAll workers successfully shut down.\n"
break
else
printf "."
sleep 10
fi
done
fi