Merge pull request #18856 from overleaf/jpa-server-ce-shutdown

[server-ce] improve shutdown procedure

GitOrigin-RevId: 5a99868d17f597c366e42625cd39f05146dcb682
This commit is contained in:
Jakob Ackermann
2024-06-18 08:04:04 +00:00
committed by Copybot
parent 6980a44f8b
commit e36de5a62d
8 changed files with 14 additions and 10 deletions
@@ -18,9 +18,12 @@ EXIT_CODE="$?"
if [ $EXIT_CODE -ne 0 ]
then
echo "scripts/disconnect_all_users.js failed with exit code $EXIT_CODE"
exit 1
fi
# wait for disconnection
sleep 5
while ! sv stop real-time-overleaf; do
sleep 1
done
exit 0
@@ -9,6 +9,7 @@ EXIT_CODE="$?"
if [ $EXIT_CODE -ne 0 ]
then
echo "document-updater/scripts/flush_all.js failed with exit code $EXIT_CODE"
exit 1
fi
exit 0
@@ -9,6 +9,7 @@ EXIT_CODE="$?"
if [ $EXIT_CODE -ne 0 ]
then
echo "project-history/scripts/flush_all.js failed with exit code $EXIT_CODE"
exit 1
fi
exit 0