watch on port 80

This commit is contained in:
Gerrit Gogel 2021-02-01 18:12:50 +01:00
parent f2726d0c3e
commit c1b68618fe

View file

@ -21,15 +21,15 @@ function start_socat {
function watch_server { function watch_server {
while true; do 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..." echo "Seafile server is unreachable. Stopping seahub..."
pkill -f manage.py 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 sleep 1
done done
start_seahub & start_seahub &
fi fi
sleep 5 sleep 2
done done
} }