From 1d344102dce0f5d3fe48e11ec64f75b8a293aa08 Mon Sep 17 00:00:00 2001 From: Jeremiah Orem Date: Mon, 17 Jun 2013 10:28:18 -0700 Subject: [PATCH] Remove old mod_wsgi restart method. --- scripts/update/fabfile.py | 12 ++---------- scripts/update/update.py | 12 ++---------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/scripts/update/fabfile.py b/scripts/update/fabfile.py index d767abed89..d14795f96c 100644 --- a/scripts/update/fabfile.py +++ b/scripts/update/fabfile.py @@ -192,16 +192,8 @@ def install_cron(): @roles(settings.WEB_HOSTGROUP) @task def restart_workers(): - if getattr(settings, 'GUNICORN', False): - for gservice in settings.GUNICORN: - run("/sbin/service %s graceful" % gservice) - else: - run("/bin/touch %s/wsgi/zamboni.wsgi" % settings.REMOTE_APP) - run("/bin/touch %s/wsgi/mkt.wsgi" % settings.REMOTE_APP) - run("/bin/touch %s/services/wsgi/verify.wsgi" % - settings.REMOTE_APP) - run("/bin/touch %s/services/wsgi/application.wsgi" % - settings.REMOTE_APP) + for gservice in settings.GUNICORN: + run("/sbin/service %s graceful" % gservice) @roles(settings.CELERY_HOSTGROUP) diff --git a/scripts/update/update.py b/scripts/update/update.py index c2117a3e4b..2063544a26 100644 --- a/scripts/update/update.py +++ b/scripts/update/update.py @@ -154,16 +154,8 @@ def sync_code(ctx): @hostgroups(settings.WEB_HOSTGROUP, remote_kwargs={'ssh_key': settings.SSH_KEY}) def restart_workers(ctx): - if getattr(settings, 'GUNICORN', False): - for gservice in settings.GUNICORN: - ctx.remote("/sbin/service %s graceful" % gservice) - else: - ctx.remote("/bin/touch %s/wsgi/zamboni.wsgi" % settings.REMOTE_APP) - ctx.remote("/bin/touch %s/wsgi/mkt.wsgi" % settings.REMOTE_APP) - ctx.remote("/bin/touch %s/services/wsgi/verify.wsgi" % - settings.REMOTE_APP) - ctx.remote("/bin/touch %s/services/wsgi/application.wsgi" % - settings.REMOTE_APP) + for gservice in settings.GUNICORN: + ctx.remote("/sbin/service %s graceful" % gservice) @task