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

[Chore] Add systemd unit restart policy #34

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

Sereja313
Copy link
Member

Problem: By default, systemd services generated from the NixOS system configuration don't attempt to restart on failure since Restart=no. However, in some cases, running processes can fail for unclear reasons, and the simplest way to bring the failed service back to life is to restart it. Instead, currently, the service will fail and trigger an alert without attempting to restart.

Solution: Add default values for startLimitBurst, startLimitIntervalSec, Restart, and RestartSec.

Problem: By default, systemd services generated from the NixOS system
configuration don't attempt to restart on failure since
Restart=no. However, in some cases, running processes can fail for
unclear reasons, and the simplest way to bring the failed service back
to life is to restart it. Instead, currently, the service will fail
and trigger an alert without attempting to restart.

Solution: Add default values for startLimitBurst,
startLimitIntervalSec, Restart, and RestartSec.
@Sereja313 Sereja313 requested a review from a team December 22, 2023 11:10
@rvem rvem merged commit 202f023 into master Jan 12, 2024
1 check passed
@delete-merged-branch delete-merged-branch bot deleted the sereja/OPS-1402-add-restart-policy branch January 12, 2024 13:34
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.

2 participants