Files
cloudron-box/setup/stop.sh
T
Girish Ramakrishnan 5b21996fad pipefail all scripts
This makes bash fail the shell if any part of cmd1 | cmd2 | cmd3 fails
(not just the last cmd3 one)
2015-03-05 13:54:11 -08:00

16 lines
264 B
Bash
Executable File

#!/bin/bash
set -eu -o pipefail
echo "Stopping box code"
service supervisor stop || true
echo -n "Waiting for supervisord to stop"
while test -e "/var/run/supervisord.pid" && kill -0 `cat /var/run/supervisord.pid`; do
echo -n "."
sleep 1
done
echo ""