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
|
|
|
|
|
|
|
while [[ -n `ps -ef | grep "bin/sc" | grep -v "grep"` ]]; do
|
|
|
|
printf "."
|
|
|
|
sleep .5
|
|
|
|
done
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "Sauce Connect tunnel has been shut down"
|