summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2020-05-15 09:21:36 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2020-05-15 09:21:36 (GMT)
commit1afcd6aee1d3ab6c40b21433c0424822e1b10cbf (patch)
treefa5ca77c17c03e4259182e50b9b5ded3d4599b04
parent2ffccb15d6d1af249bf5b5977bccc86405e15b5b (diff)
downloadmisc-fred-1afcd6aee1d3ab6c40b21433c0424822e1b10cbf.zip
misc-fred-1afcd6aee1d3ab6c40b21433c0424822e1b10cbf.tar.gz
misc-fred-1afcd6aee1d3ab6c40b21433c0424822e1b10cbf.tar.bz2
eoptasks: reread supervisor config before restarting hobo-agent
-rwxr-xr-xeoptasks/eoptasks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/eoptasks/eoptasks.py b/eoptasks/eoptasks.py
index 43ae387..8b981b1 100755
--- a/eoptasks/eoptasks.py
+++ b/eoptasks/eoptasks.py
@@ -213,7 +213,7 @@ def command_window(args):
'combo.reload': '''sudo service combo reload; /bin/true''',
# 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''',
+ 'hobo-agent.restart': '''test -e /etc/hobo-agent/settings.py && sudo supervisorctl reread && 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''',