new LaunchCtl(path)
Simple launchctl wrapper.
Parameters:
Name | Type | Description |
---|---|---|
path |
string | Path to Launch Agent. Can contain tilde. |
- Source:
Methods
init() → {Promise}
Initiates class object to use with specified agent (asynchronous).
- Source:
Returns:
- Type
- Promise
initSync()
Initiates class object to use with specified agent (synchronous).
- Source:
load() → {Promise}
Loads service (asynchronous).
- Source:
Returns:
- Type
- Promise
loadSync()
Loads service (synchronous).
- Source:
running() → {Promise}
Checks if service currently running (asynchronous).
- Source:
Returns:
- Type
- Promise
runningSync()
Checks if service currently running (synchronous).
- Source:
unload() → {Promise}
Unloads service (asynchronous).
- Source:
Returns:
- Type
- Promise
unloadSync()
Unloads service (synchronous).
- Source: