eoptasks: add memcached.restart

This commit is contained in:
Frédéric Péters 2019-03-26 16:53:27 +01:00
parent d5e93609b7
commit f9fadc9752
1 changed files with 2 additions and 0 deletions

View File

@ -214,6 +214,8 @@ def command_window(args):
# hobo-agent.restart is the fastest way to get the number of threads
# used by celery under control :/
'hobo-agent.restart': '''test -e /etc/hobo-agent/settings.py && sudo supervisorctl restart hobo-agent''',
# memcached.restart is useful to force shared theme to be updated.
'memcached.restart': '''sudo service memcached restart; /bin/true''',
'restart.all': '''sudo systemctl restart authentic2-multitenant bijoe chrono combo corbo fargo hobo passerelle wcs; /bin/true''',
}.get(args.cmd, args.cmd)
if args.args: