2015-09-22 23:45:30 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e -o pipefail
|
|
|
|
|
|
|
|
|
|
|
|
echo "Shutting down Sauce Connect tunnel"
|
2015-09-23 12:37:04 -04:00
|
|
|
|
2015-09-22 23:45:30 -04:00
|
|
|
killall sc
|
2015-09-23 12:37:04 -04:00
|
|
|
|
2015-09-23 16:59:41 -04:00
|
|
|
while [[ -n `ps -ef | grep "sauce-connect-" | grep -v "grep"` ]]; do
|
2015-09-23 12:37:04 -04:00
|
|
|
printf "."
|
|
|
|
sleep .5
|
|
|
|
done
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "Sauce Connect tunnel has been shut down"
|