mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 17:05:32 +00:00
echo waiting for socket only once
This commit is contained in:
parent
a99b8053b4
commit
7ba4720d31
|
@ -17,8 +17,8 @@ function stop_server {
|
||||||
}
|
}
|
||||||
|
|
||||||
function start_socat {
|
function start_socat {
|
||||||
|
echo "Waiting for SeaRPC socket..."
|
||||||
while [ ! -S /opt/seafile/seafile-server-latest/runtime/seafile.sock ]; do
|
while [ ! -S /opt/seafile/seafile-server-latest/runtime/seafile.sock ]; do
|
||||||
echo "Waiting for SeaRPC socket..."
|
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
socat -d -d TCP-LISTEN:8001,fork,reuseaddr UNIX:/opt/seafile/seafile-server-latest/runtime/seafile.sock,forever
|
socat -d -d TCP-LISTEN:8001,fork,reuseaddr UNIX:/opt/seafile/seafile-server-latest/runtime/seafile.sock,forever
|
||||||
|
|
Loading…
Reference in a new issue