From: Jan Szejko Date: Wed, 3 Feb 2016 11:58:18 +0000 (+0100) Subject: restart memcached via fabric X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/029fd918963a5cebf7cb722e2ba39c27639a976f?ds=inline restart memcached via fabric --- 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(), ]