Angular: ajenti.services¶
Services¶
- class services()¶
- services.getManagers()¶
- Returns:
promise → array of the available service managers
- services.getServices(managerId)¶
- Returns:
promise → array of the available services in the
ServiceManager
- services.getService(managerId, serviceId)¶
- Returns:
promise → object, gets a single service from the manager
- services.runOperation(managerId, serviceId, operation)¶
- Arguments:
operation (
string) – typicallystart,stop,restart,reload; depends on the service manager
- Returns:
promise