Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
restart-server: --tornado-reshard implies --skip-client-reloads.
Alex Vandiver21f08265deda
diff --git a/scripts/refresh-sharding-and-restart b/scripts/refresh-sharding-and-restartindex 4d29c706a7c..bb82f769bee 100755--- a/scripts/refresh-sharding-and-restart+++ b/scripts/refresh-sharding-and-restart@@ -25,5 +25,5 @@ fi# clients getting into reload loops ending in crashing on 500 response# while Django is restarting. For this reason it's important to# reload nginx only after Django and Tornado.-"$(dirname "$0")/restart-server" --skip-client-reloads --tornado-reshard+"$(dirname "$0")/restart-server" --tornado-reshardservice nginx reloaddiff --git a/scripts/restart-server b/scripts/restart-serverindex f36dce046b2..f65f10c5725 100755--- a/scripts/restart-server+++ b/scripts/restart-server@@ -303,7 +303,12 @@ if (action == "start" or args.less_graceful) and not args.only_django:logging.info("Starting workers")subprocess.check_call(["supervisorctl", "start", *workers])-if has_application_server() and not args.skip_client_reloads and not args.only_django:+if (+ has_application_server()+ and not args.skip_client_reloads+ and not args.only_django+ and not args.tornado_reshard+):# All of the servers have been (re)started; now enqueue events in# the Tornado servers to tell clients to reload.logging.info("Sending reload events to clients in the background")