Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix(systemd script): define RestartSec as 2 #7733

Merged
merged 1 commit into from
Apr 30, 2024
Merged

fix(systemd script): define RestartSec as 2 #7733

merged 1 commit into from
Apr 30, 2024

Conversation

jxshin
Copy link
Contributor

@jxshin jxshin commented Apr 29, 2024

Describe the pull request

The value of RestartSec is suggested to be greater than 1. (defaults to 100 ms)
suggestion on https://serverfault.com/.

The reason is that

"The default limit is to allow 5 restarts in a 10sec period. If a service goes over that threshold due to the Restart= config option in the service definition, it will not attempt to restart any further.
The rates are configured with the StartLimitIntervalSec= (defaults to 10 s) and StartLimitBurst= (defaults to 5) options and the Restart= option controls when SystemD tries to restart a service."

explanation on https://serverfault.com/

manual of systemd

Link to the issue: "n/a"

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code or have provided the test plan.

@jxshin jxshin requested a review from unknwon as a code owner April 29, 2024 10:25
Copy link
Member

@unknwon unknwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@unknwon unknwon merged commit 6f9b635 into gogs:main Apr 30, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants