service_status
This generic method defines if service should run or be stopped.
⚙️ Compatible targets: Windows
Parameters
Name | Documentation |
---|---|
name | Service name. This parameter is required. |
status | Desired state for the user - can be 'Stopped' or 'Running'. Choices:
This parameter is required. |
Outcome conditions
You need to replace ${name}
with its actual canonified value.
- ✅ Ok:
service_status_${name}_ok
- ☑️ Already compliant:
service_status_${name}_kept
- 🟨 Repaired:
service_status_${name}_repaired
- ☑️ Already compliant:
- ❌ Error:
service_status_${name}_error
Example
method: service_status
params:
name: VALUE
status: Stopped