cryptgeon/entry.sh

14 lines
243 B
Bash
Raw Normal View History

2022-06-07 12:41:20 +02:00
#!/bin/sh
2022-06-07 12:41:20 +02:00
HOST=$(echo $MEMCACHE | cut -d: -f1)
PORT=$(echo $MEMCACHE | cut -d: -f2)
echo "Waiting for memcached at $HOST:$PORT"
while ! nc -z -w 1 $HOST $PORT; do
sleep 1
2022-06-07 12:41:20 +02:00
echo "retrying..."
done
echo "Starting server"
/app/cryptgeon