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:
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user