add hobo-agent.restart command

This commit is contained in:
Frédéric Péters 2018-12-23 11:18:05 +01:00
parent a88d3e042f
commit 493ad8f5e7
1 changed files with 3 additions and 0 deletions

View File

@ -235,6 +235,9 @@ else:
# combo.reload is useful to get a new {% start_timestamp %} after an
# upgrade of publik-base-theme.
'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''',
}.get(args.cmd, args.cmd)
status_window = session.attached_window