This commit is contained in:
1 parent
cb58f1d762
commit
9de12c72de
1 file changed
+1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user