Skip to content

Manage service recovery options to avoid service restart loop #2283

@brajjan

Description

@brajjan

Summary of the new feature / enhancement

If the sshd service fails to start it will not fail as all service recovery options are set to restart the service. This creates a loop of service restarts. As every service restart is logged - the event log will be filled with service restart log events ~ 1000 log entries per minute

PS C:\> sc qfailure sshd
[SC] QueryServiceConfig2 SUCCESS

SERVICE_NAME: sshd
        RESET_PERIOD (in seconds)    : 86400
        REBOOT_MESSAGE               :
        COMMAND_LINE                 :
        FAILURE_ACTIONS              : RESTART -- Delay = 0 milliseconds.
                                       RESTART -- Delay = 0 milliseconds.
                                       RESTART -- Delay = 0 milliseconds.

Suggestion:

  • Change the delays to 60000 for the first two failure actions
  • Change the third action to "Take no Action"

Proposed technical implementation details (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions