eoptasks: add shortcut to restart all services

(useful after a new hobo version, for example)
This commit is contained in:
Frédéric Péters 2019-02-06 15:20:22 +01:00
parent b75877298b
commit 8707b0009f
1 changed files with 1 additions and 0 deletions

View File

@ -214,6 +214,7 @@ 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''',
'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:
cmd += ' ' + ' '.join(['"%s"' % x for x in args.args])