32 lines
659 B
Bash
Executable File
32 lines
659 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
# node /proxy_cache_thing/dist/index.js &
|
|
# CACHE_PID=$!
|
|
|
|
# /httptoolkit-server/bin/run start -c /certificates &
|
|
# HTTPTOOLKIT_SERVER_PID=$!
|
|
|
|
bash /conf/docker-entrypoint.sh &
|
|
ANDROID_PID=$!
|
|
|
|
function check_dead() {
|
|
# if ! ps -p $CACHE_PID > /dev/null; then
|
|
# echo "[ERROR] The proxy cache died, exiting...";
|
|
# exit 1;
|
|
# fi
|
|
# if ! ps -p $HTTPTOOLKIT_SERVER_PID > /dev/null; then
|
|
# echo "[ERROR] The httptoolkit_server died, exiting...";
|
|
# exit 1;
|
|
# fi
|
|
if ! ps -p $ANDROID_PID > /dev/null; then
|
|
echo "[ERROR] The android emulator died, exiting...";
|
|
exit 1;
|
|
fi
|
|
}
|
|
|
|
# Exit on error
|
|
while true; do
|
|
check_dead;
|
|
sleep 1;
|
|
done
|