service - Windows Service

Checks a Windows service to make sure it’s in the correct state.

service
Type:

string

Required:

true

the short name of the service to monitor (this is the “Service Name” on the General tab of the service Properties in the Services MMC snap-in).

want_state
Type:

string

Required:

false

Default:

RUNNING

the required status for the service. One of:

  • RUNNING

  • STOPPED

  • PAUSED

  • START_PENDING

  • PAUSE_PENDING

  • CONTINUE_PENDING

  • STOP_PENDING

Tip

version 1.9 and earlier had a host parameter, which is no longer used.