From 029fd918963a5cebf7cb722e2ba39c27639a976f Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Wed, 3 Feb 2016 12:58:18 +0100 Subject: [PATCH] restart memcached via fabric --- fabfile.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fabfile.py b/fabfile.py index ff9a4b4f8..87954e834 100644 --- a/fabfile.py +++ b/fabfile.py @@ -24,6 +24,12 @@ def compile_messages(): run('source %(ve)s/bin/activate && python manage.py localepack -c' % env, pty=True) +class Memcached(Service): + def run(self): + print '>>> memcached: restart' + sudo('service memcached restart', shell=False) + + @task def production(): env.hosts = ['giewont.icm.edu.pl'] @@ -38,6 +44,7 @@ def production(): env.services = [ Supervisord('wolnelektury'), Supervisord('wolnelektury.celery'), + Memcached(), ] -- 2.20.1