Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: minor correction

...

C:\WINDOWS\System32>sc failure hasplms reset= 600 actions= restart/10000/restart/10000

(info) With this setup, the restart operation will occur 10 seconds after the failure (10000 milliseconds) with a maximum of 2 and the counter of restart operations in will be reset after 10 minutes interval (600 seconds).

(warning) Respect the syntax, mainly the blank space after the equal sign.

...

C:\WINDOWS\System32>sc qfailure hasplms

Code Block
languagetext
[SC] QueryServiceConfig2 SUCCESS

SERVICE_NAME: hasplms
        RESET_PERIOD (in seconds)    : 600
        REBOOT_MESSAGE               :
        COMMAND_LINE                 :
        FAILURE_ACTIONS              : RESTART -- Delay = 10000 milliseconds.
                                       RESTART -- Delay = 10000 milliseconds.


...