Methods
(async) getServiceIdByName(name) → {Promise.<number>}
Retrieves the ID of the service with the name provided
Parameters:
Name | Type | Description |
---|---|---|
name |
string |
The name of the Service |
(async) list() → {Promise.<Array.<module:Services~service>>}
Get a list of all available services
(async) restart(id) → {Promise}
Restart the service with the ID specified
Parameters:
Name | Type | Description |
---|---|---|
id |
number |
The ID of the service |
(async) start(id) → {Promise}
Start the service with the ID specified
Parameters:
Name | Type | Description |
---|---|---|
id |
number |
The ID of the service |
(async) stop(id) → {Promise}
Stop the service with the ID specified
Parameters:
Name | Type | Description |
---|---|---|
id |
number |
The ID of the service |