Commit 3e898c6c authored by Administrator's avatar Administrator

Update app.js

parent 4ba95b97
...@@ -38,7 +38,7 @@ async function processConfig(newConfig) { ...@@ -38,7 +38,7 @@ async function processConfig(newConfig) {
async function reloadHAProxy() { async function reloadHAProxy() {
try { 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); console.log('HAProxy reloaded successfully:', stdout);
if (stderr) { if (stderr) {
console.error('Reload error:', 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