eoptasks: add shortcut to restart all services
(useful after a new hobo version, for example)
This commit is contained in:
parent
b75877298b
commit
8707b0009f
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue