Revert "restart-server: Use 'all' instead of specifying the supervisor jobs to operate on explicitly"

This reverts commit acef4c0027b77053497ef6e9f7aa4b61703205c3.

Despite the lower total downtime, this caused more user-facing downtime.

(imported from commit 5cce032bb20abe83853a65ee72bf0bb28af403cc)
This commit is contained in:
Zev Benjamin 2013-11-21 13:50:56 -05:00
parent e10549a310
commit 9b2aa657be
1 changed files with 2 additions and 2 deletions

View File

@ -27,9 +27,9 @@ subprocess.check_call(["python", "./manage.py", "fill_memcached_caches"])
# Restart the FastCGI and related processes via supervisorctl. # Restart the FastCGI and related processes via supervisorctl.
logging.info("Killing daemons") logging.info("Killing daemons")
subprocess.check_call(["supervisorctl", "stop", "all"]) subprocess.check_call(["supervisorctl", "stop", "zulip-workers:* zulip-django zulip-tornado"])
subprocess.check_call(["ln", '-nsf', deploy_path, os.path.join(DEPLOYMENTS_DIR, "current")]) subprocess.check_call(["ln", '-nsf', deploy_path, os.path.join(DEPLOYMENTS_DIR, "current")])
subprocess.check_call(["supervisorctl", "start", "all"]) subprocess.check_call(["supervisorctl", "start", "zulip-tornado zulip-django zulip-workers:*"])
using_sso = subprocess.check_output(['./bin/get-django-setting', 'USING_SSO']) using_sso = subprocess.check_output(['./bin/get-django-setting', 'USING_SSO'])
if using_sso.strip() == 'True': if using_sso.strip() == 'True':