From c8d6958ebdddb5b08233f41c316d85b26e247819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 15 May 2020 11:21:36 +0200 Subject: [PATCH] reread supervisor config before restarting hobo-agent --- eoptasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eoptasks.py b/eoptasks.py index 43ae387..8b981b1 100755 --- a/eoptasks.py +++ b/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''',