Each time a service changes state
Windows only. Watch a service and run the nested steps when it starts, stops, pauses or resumes; gives the change and the new state.
Loop type in the Trigger Loop toolkit · id ooa.triggerloop/service_changes · 6 inputs (1 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Service | String | Yes | Service name (not its display name), e.g. Spooler. | |
| Event | String | No | any | Which change starts the steps. |
| Include current | Boolean | No | false | Also run the steps once at the start for the state the service is in (is running, has stopped, is paused). |
| Poll (seconds) | Number | No | 5 | How often to check, in seconds. |
| Maximum events | Number | No | 0 | Stop after this many events; 0 = no limit. |
| Maximum (seconds) | Number | No | 0 | Stop waiting after this many seconds in total; 0 = no limit (until the run is stopped or an Exit loop step runs). |