mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-26 16:06:33 +03:00
Linux systemd isntall fix.
This commit is contained in:
parent
3b9173b9d3
commit
3427f242f1
@ -213,18 +213,21 @@ function CreateMeshCentralServer(config, args) {
|
||||
if ((err != null) && (err != '')) { console.log('ERROR: Unable to start MeshCentral: ' + err); process.exit(); return; }
|
||||
console.log('Done.');
|
||||
});
|
||||
return;
|
||||
} else if (obj.args.stop == true) {
|
||||
// Stop MeshCentral in Systemd
|
||||
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; }
|
||||
console.log('Done.');
|
||||
});
|
||||
return;
|
||||
} else if (obj.args.restart == true) {
|
||||
// Restart MeshCentral in Systemd
|
||||
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; }
|
||||
console.log('Done.');
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user