add unlink-early option to socat

This commit is contained in:
Gerrit Gogel 2021-02-19 10:30:35 +01:00
parent fbe5cde87f
commit b918d96bf5

View file

@ -17,7 +17,7 @@ function start_socat {
sleep 1
done
echo "Starting socat..."
socat -d -d UNIX-LISTEN:/opt/seafile/seafile-server-latest/runtime/seafile.sock,fork TCP:seafile-server:8001,forever,keepalive,keepidle=10,keepintvl=10,keepcnt=2
socat -d -d UNIX-LISTEN:/opt/seafile/seafile-server-latest/runtime/seafile.sock,fork,unlink-early TCP:seafile-server:8001,forever,keepalive,keepidle=10,keepintvl=10,keepcnt=2
done
}