diff --git a/haproxy_manager.py b/haproxy_manager.py index 7bd9736..bb81b57 100644 --- a/haproxy_manager.py +++ b/haproxy_manager.py @@ -155,6 +155,7 @@ def regenerate_conf(): def reload_haproxy(): if is_process_running('haproxy'): subprocess.run(['echo', '"reload"', '|', 'socat', 'stdio', '/tmp/haproxy-cli']) + return jsonify({'status': 'success'}), 200 else: try: result = subprocess.run(