summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-02-06 14:20:22 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-02-06 14:20:22 (GMT)
commit8707b0009f242399594fc7827d4f4925ddb39f62 (patch)
treec9c6c4aeaecaed1f4dcd7e6fd0a103e45575d4cc
parentb75877298b7605bb5a3bcdf40b4f58faaff2a20a (diff)
downloadmisc-fred-8707b0009f242399594fc7827d4f4925ddb39f62.zip
misc-fred-8707b0009f242399594fc7827d4f4925ddb39f62.tar.gz
misc-fred-8707b0009f242399594fc7827d4f4925ddb39f62.tar.bz2
eoptasks: add shortcut to restart all services
(useful after a new hobo version, for example)
-rwxr-xr-xeoptasks/eoptasks.py1
1 files changed, 1 insertions, 0 deletions
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])