From c1b68618fe812d7b478e434b78fe86b773ceefc8 Mon Sep 17 00:00:00 2001 From: Gerrit Gogel Date: Mon, 1 Feb 2021 18:12:50 +0100 Subject: [PATCH] watch on port 80 --- seahub/scripts/start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seahub/scripts/start.sh b/seahub/scripts/start.sh index 20ce4c5..4e4988e 100644 --- a/seahub/scripts/start.sh +++ b/seahub/scripts/start.sh @@ -21,15 +21,15 @@ function start_socat { function watch_server { while true; do - if ! nc -z seafile-server 8001 2>/dev/null; then + if ! nc -z seafile-server 8080 2>/dev/null; then echo "Seafile server is unreachable. Stopping seahub..." pkill -f manage.py - while ! nc -z seafile-server 8001 2>/dev/null; do + while ! nc -z seafile-server 8080 2>/dev/null; do sleep 1 done start_seahub & fi - sleep 5 + sleep 2 done }