seafile-server wait until searpc is available

This commit is contained in:
Gerrit Gogel 2021-01-22 23:33:28 +01:00
parent 9c0f7e2bd2
commit aa85043e23

View file

@ -2,7 +2,11 @@
/scripts/create_data_links.sh
mkdir -p /opt/seafile/seafile-server-latest/runtime
socat -v -d -d TCP-LISTEN:8001,fork,forever UNIX:/opt/seafile/seafile-server-latest/runtime/seafile.sock,forever &
python3 /scripts/start.py &
python3 /scripts/start.py
while [ ! -S /opt/seafile/seafile-server-latest/runtime/seafile.sock ]; do
echo "Waiting for SeaRPC socket..."
sleep 1
done
socat -v -d -d TCP-LISTEN:8001,fork UNIX:/opt/seafile/seafile-server-latest/runtime/seafile.sock,forever