From e9771dcb83a8a503fa3aa7a9defc3b8ed5403073 Mon Sep 17 00:00:00 2001 From: Gerrit Gogel Date: Mon, 1 Feb 2021 14:17:29 +0100 Subject: [PATCH] stop / start socat in gc.sh --- seafile-server/scripts/gc.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/seafile-server/scripts/gc.sh b/seafile-server/scripts/gc.sh index 1bfe38c..56dd6a2 100644 --- a/seafile-server/scripts/gc.sh +++ b/seafile-server/scripts/gc.sh @@ -1,9 +1,11 @@ #!/bin/bash set -e +source /scripts/utils.sh SEAFILE_DIR=/opt/seafile/seafile-server-latest if [[ $SEAFILE_SERVER != *"pro"* ]]; then echo "Seafile CE: Stop Seafile to perform offline garbage collection." + stop_socat $SEAFILE_DIR/seafile.sh stop echo "Waiting for the server to shut down properly..." sleep 5 @@ -18,8 +20,9 @@ fi ) gc_exit_code=$? if [[ $SEAFILE_SERVER != *"pro"* ]]; then - echo "Giving the server some time..." + echo "Seafile CE: Offline garbage collection completed. Starting Seafile." sleep 3 $SEAFILE_DIR/seafile.sh start + start_socat fi exit $gc_exit_code