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

Use Restart=always for the Teleport systemd service #41564

Merged
merged 1 commit into from
May 15, 2024

Conversation

espadolini
Copy link
Contributor

The current systemd unit file for Teleport uses Restart=on-failure, but we just noticed a race condition that could cause Teleport to get terminated by an unhandled HUP signal, which systemd treats as a "clean" exit state. Seeing as the teleport binary will never exit on its own volition except after spawning a brand new teleport and checking that it's running, this PR sets the restart behavior to always instead.

Of note is that Restart=always will not restart the service if it's manually stopped via systemctl stop and similar systemd-level controls, only if the process exits "cleanly" (which is a bug).

changelog: ensured that systemd always restarts Teleport on any failure unless explicitly stopped

@espadolini espadolini added this pull request to the merge queue May 15, 2024
Merged via the queue into master with commit 9fb5426 May 15, 2024
41 of 42 checks passed
@espadolini espadolini deleted the espadolini/systemd-restart-always branch May 15, 2024 12:58
@public-teleport-github-review-bot

@espadolini See the table below for backport results.

Branch Result
branch/v13 Create PR
branch/v14 Create PR
branch/v15 Create PR

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

Successfully merging this pull request may close these issues.

None yet

6 participants