diff --git a/seafile-server/scripts/start.sh b/seafile-server/scripts/start.sh index 167aff5..54facdb 100644 --- a/seafile-server/scripts/start.sh +++ b/seafile-server/scripts/start.sh @@ -9,4 +9,4 @@ while [ ! -S /opt/seafile/seafile-server-latest/runtime/seafile.sock ]; do sleep 1 done -socat -v -d -d TCP-LISTEN:8001,fork UNIX:/opt/seafile/seafile-server-latest/runtime/seafile.sock,forever \ No newline at end of file +socat -v -d -d TCP-LISTEN:8001,fork,reuseaddr UNIX:/opt/seafile/seafile-server-latest/runtime/seafile.sock,forever \ No newline at end of file diff --git a/seahub/scripts/start.sh b/seahub/scripts/start.sh index 9ea95d3..72e148d 100644 --- a/seahub/scripts/start.sh +++ b/seahub/scripts/start.sh @@ -3,7 +3,7 @@ /scripts/create_data_links.sh mkdir -p /opt/seafile/seafile-server-latest/runtime -socat -v -d -d UNIX-LISTEN:/opt/seafile/seafile-server-latest/runtime/seafile.sock,fork TCP:seafile-server:8001,forever & +socat -v -d -d UNIX-LISTEN:/opt/seafile/seafile-server-latest/runtime/seafile.sock,fork TCP:seafile-server:8001,forever,keepalive,ignoreeof & python3 /opt/seafile/seafile-server-latest/seahub/manage.py runserver 0.0.0.0:8000