1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 15:53:55 +00:00

Added startType to getService() for MacOS

This commit is contained in:
Bryan Roe
2019-08-27 11:19:12 -07:00
parent fd7a0a0f5b
commit e384a1a680
2 changed files with 26 additions and 12 deletions

View File

@@ -199,6 +199,20 @@ if (process.platform == 'darwin')
return (child.stdout.str.trim().toUpperCase() == "TRUE");
}
});
Object.defineProperty(ret, 'startType',
{
get: function()
{
if(this.daemon)
{
return (this._runAtLoad ? 'AUTO_START' : 'DEMAND_START');
}
else
{
return ('AUTO_START');
}
}
});
Object.defineProperty(ret, "_keepAlive",
{
get: function ()