From 8707b0009f242399594fc7827d4f4925ddb39f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 6 Feb 2019 15:20:22 +0100 Subject: [PATCH] eoptasks: add shortcut to restart all services (useful after a new hobo version, for example) --- eoptasks/eoptasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/eoptasks/eoptasks.py b/eoptasks/eoptasks.py index 6124f97..8e574d5 100755 --- a/eoptasks/eoptasks.py +++ b/eoptasks/eoptasks.py @@ -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])