Skip to main content

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​

InputTypeRequiredDefaultWhat it is
ServiceStringYesService name (not its display name), e.g. Spooler.
EventStringNoanyWhich change starts the steps.
Include currentBooleanNofalseAlso run the steps once at the start for the state the service is in (is running, has stopped, is paused).
Poll (seconds)NumberNo5How often to check, in seconds.
Maximum eventsNumberNo0Stop after this many events; 0 = no limit.
Maximum (seconds)NumberNo0Stop waiting after this many seconds in total; 0 = no limit (until the run is stopped or an Exit loop step runs).