echo waiting for socket only once

This commit is contained in:
Gerrit Gogel 2021-01-28 00:40:00 +01:00
parent a99b8053b4
commit 7ba4720d31

View file

@ -17,8 +17,8 @@ function stop_server {
}
function start_socat {
echo "Waiting for SeaRPC socket..."
while [ ! -S /opt/seafile/seafile-server-latest/runtime/seafile.sock ]; do
echo "Waiting for SeaRPC socket..."
sleep 1
done
socat -d -d TCP-LISTEN:8001,fork,reuseaddr UNIX:/opt/seafile/seafile-server-latest/runtime/seafile.sock,forever