Skip to content

Set Restart=always on systemd service for added resilience - #4068

Open
ksacry-ft wants to merge 1 commit into
actions:mainfrom
ksacry-ft:systemd-restart-always
Open

ksacry-ft wants to merge 1 commit into
actions:mainfrom
ksacry-ft:systemd-restart-always

Conversation

@ksacry-ft

Copy link
Copy Markdown

This update ensures that the runner will restart if crashed.
We've experienced that under certain network conditions, or github server errors, the runner can crash.
With this change, the service will be started back up and can try again.

@ksacry-ft
ksacry-ft requested a review from a team as a code owner October 3, 2025 15:22
Copilot AI review requested due to automatic review settings October 3, 2025 15:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds automatic restart functionality to the systemd service configuration for the GitHub Actions runner to improve resilience against crashes caused by network issues or GitHub server errors.

  • Adds Restart=always directive to the systemd service template

@FredeJ

FredeJ commented Nov 3, 2025

Copy link
Copy Markdown

Came here to add this exact change.

The only things that could be up for discussion if there should also be a RestartSec=5s just to not spin in a too fast loop if the same thing is still wrong. Similarly, it could also be changed Restart=on-failure.

But these are details. I'd love to get this merged!

@ksacry-ft
ksacry-ft force-pushed the systemd-restart-always branch from d8c0635 to 3b5a81a Compare November 15, 2025 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants