mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-16 16:23:25 +00:00
Added startType to getService() for MacOS
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -199,6 +199,20 @@ if (process.platform == 'darwin')
|
|||||||
return (child.stdout.str.trim().toUpperCase() == "TRUE");
|
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",
|
Object.defineProperty(ret, "_keepAlive",
|
||||||
{
|
{
|
||||||
get: function ()
|
get: function ()
|
||||||
|
|||||||
Reference in New Issue
Block a user