mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-13 03:21:50 +00:00
Linux systemd isntall fix.
This commit is contained in:
parent
fc62ff53df
commit
67c6c419d1
1 changed files with 3 additions and 0 deletions
|
@ -213,18 +213,21 @@ function CreateMeshCentralServer(config, args) {
|
||||||
if ((err != null) && (err != '')) { console.log('ERROR: Unable to start MeshCentral: ' + err); process.exit(); return; }
|
if ((err != null) && (err != '')) { console.log('ERROR: Unable to start MeshCentral: ' + err); process.exit(); return; }
|
||||||
console.log('Done.');
|
console.log('Done.');
|
||||||
});
|
});
|
||||||
|
return;
|
||||||
} else if (obj.args.stop == true) {
|
} else if (obj.args.stop == true) {
|
||||||
// Stop MeshCentral in Systemd
|
// Stop MeshCentral in Systemd
|
||||||
require('child_process').exec('sudo systemctl stop meshcentral.service', {}, function (err, stdout, stderr) {
|
require('child_process').exec('sudo systemctl stop meshcentral.service', {}, function (err, stdout, stderr) {
|
||||||
if ((err != null) && (err != '')) { console.log('ERROR: Unable to stop MeshCentral: ' + err); process.exit(); return; }
|
if ((err != null) && (err != '')) { console.log('ERROR: Unable to stop MeshCentral: ' + err); process.exit(); return; }
|
||||||
console.log('Done.');
|
console.log('Done.');
|
||||||
});
|
});
|
||||||
|
return;
|
||||||
} else if (obj.args.restart == true) {
|
} else if (obj.args.restart == true) {
|
||||||
// Restart MeshCentral in Systemd
|
// Restart MeshCentral in Systemd
|
||||||
require('child_process').exec('sudo systemctl restart meshcentral.service', {}, function (err, stdout, stderr) {
|
require('child_process').exec('sudo systemctl restart meshcentral.service', {}, function (err, stdout, stderr) {
|
||||||
if ((err != null) && (err != '')) { console.log('ERROR: Unable to restart MeshCentral: ' + err); process.exit(); return; }
|
if ((err != null) && (err != '')) { console.log('ERROR: Unable to restart MeshCentral: ' + err); process.exit(); return; }
|
||||||
console.log('Done.');
|
console.log('Done.');
|
||||||
});
|
});
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue