Add UDK script that combines all parts of the UDK process

This commit is contained in:
Jeremy Soller
2019-06-07 09:15:21 -06:00
parent 5b03afabb2
commit ec048e775b
4 changed files with 46 additions and 0 deletions

32
scripts/udk.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/usr/bin/env bash
set -e
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
echo "## Launching UDK ##"
./scripts/udk-server.sh &
while true
do
if lsof -Pi :20715 -sTCP:LISTEN -t >/dev/null
then
break
fi
sleep 1
done
echo "## Launching NC ##"
./scripts/udk-output.sh &
while true
do
if lsof -Pi :1234 -sTCP:LISTEN -t >/dev/null
then
break
fi
sleep 1
done
echo "## Launching GDB ##"
./scripts/udk-debug.gdb