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

This shaves about 1.5 seconds off our restart time on ls-dev (9s ->
7.5s).  Still too slow, but it's a little bit better.

(imported from commit acef4c0027b77053497ef6e9f7aa4b61703205c3)
This commit is contained in:
Zev Benjamin 2013-11-15 15:12:05 -05:00
parent 337c22f9e1
commit a363b7185d
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.
logging.info("Killing daemons")
subprocess.check_call(["supervisorctl", "stop", "zulip-workers:* zulip-django zulip-tornado"])
subprocess.check_call(["supervisorctl", "stop", "all"])
subprocess.check_call(["ln", '-nsf', deploy_path, os.path.join(DEPLOYMENTS_DIR, "current")])
subprocess.check_call(["supervisorctl", "start", "zulip-tornado zulip-django zulip-workers:*"])
subprocess.check_call(["supervisorctl", "start", "all"])
using_sso = subprocess.check_output(['./bin/get-django-setting', 'USING_SSO'])
if using_sso.strip() == 'True':