Resource Type: service_recovery

Defined in:
lib/puppet/type/service_recovery.rb

Overview

Manages the Recovery/Failure settings for a Windows Service Autorequires: Puppet will auto-require the service resource with the same ‘name’ as this resource.

Properties

  • command
    Command to run on failure. This only matters if you use a "failure_action" with an
    "action" of "run_command". Note: Windows uses the same command for each failure,
    you can not specify a unique command per-failure.'
    
  • failure_actions (defaults to: [])
    List of actions to perform when the service fails. This takes two parameters "action",
    the type of action to execute. Action "noop" means take no action. Action "reboot"
    means reboot the computer display the "reboot_message" prior to rebooting. Action
    "restart" means restart the service. Action "run_command" executes the "command"
    when the service fails. The "delay" parameter is measure in milliseconds. The maximum
    size of this array is 3.'
    
  • reboot_message

    Message to display before rebooting the computer. This only matters if you use a “failure_action” with an “action” of “reboot”.

  • reset_period (defaults to: 86400)

    Number of seconds to wait before resetting the “failed” count. Default: 86,400 = 1 day (Windows default).

Parameters

  • name (namevar)

    Name of the service.