mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 17:05:32 +00:00
watch seafile-server on port 8082
This commit is contained in:
parent
15838f72f3
commit
6b76910d36
|
@ -22,15 +22,15 @@ function start_socat {
|
||||||
|
|
||||||
function watch_server {
|
function watch_server {
|
||||||
while true; do
|
while true; do
|
||||||
if ! nc -z seafile-server 8080 2>/dev/null; then
|
sleep 2
|
||||||
|
if ! nc -z seafile-server 8082 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 8080 2>/dev/null; do
|
while ! nc -z seafile-server 8082 2>/dev/null; do
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
start_seahub &
|
start_seahub &
|
||||||
fi
|
fi
|
||||||
sleep 2
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue