Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Manage service recovery options to avoid service restart loop #2283

Open
brajjan opened this issue Oct 10, 2024 · 0 comments
Open

Manage service recovery options to avoid service restart loop #2283

brajjan opened this issue Oct 10, 2024 · 0 comments

Comments

@brajjan
Copy link

brajjan commented Oct 10, 2024

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants