mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
scripts: Add a script to stop the server.
Using `supervisorctl stop all` to stop the server is not terribly discoverable, and may stop services which are not part of Zulip proper. Add an explicit tool which only stops the relevant services. It also more carefully controls the order in which services are stopped to minimize lost requests, and maximally quiesce the server. Locations which may be stopping _older_ versions of Zulip (without this script) are left with using `supervisorctl stop all`. Fixes #14959.
This commit is contained in:
committed by
Tim Abbott
parent
31169526ec
commit
476524c0c1
@@ -28,7 +28,7 @@ fi
|
||||
|
||||
# Shut down all services to ensure a quiescent state.
|
||||
if [ -e "/var/run/supervisor.sock" ]; then
|
||||
supervisorctl stop all
|
||||
su zulip -c "$(dirname "$(dirname "$0")")/stop-server"
|
||||
fi
|
||||
|
||||
# Drop any open connections to any old database.
|
||||
|
||||
Reference in New Issue
Block a user