Commit 3e898c6c authored by Administrator's avatar Administrator

Update app.js

parent 4ba95b97
......@@ -38,7 +38,7 @@ async function processConfig(newConfig) {
async function reloadHAProxy() {
try {
const { stdout, stderr } = await execPromise('sudo systemctl reload haproxy');
const { stdout, stderr } = await execPromise('sudo systemctl restart haproxy');
console.log('HAProxy reloaded successfully:', stdout);
if (stderr) {
console.error('Reload error:', stderr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment