chore: change systemd example TimeoutStopSec -> infinity #1551

Merged
mfenniak merged 1 commit from mfenniak/forgejo-runner:set-timeoutstopsec into main 2026-06-04 13:57:55 +00:00
Owner

Currently the example systemd unit will not allow the runner to do a graceful shutdown, even if shutdown_timeout is set. By changing the timeout to infinite, it should allow shutdown_timeout to be effective. An even better value would be to set it up to shutdown_timeout plus a small margin to allow for internal error recovery, but as these are configured separately, this seems like the best default that can be provided. This example file is referenced in the binary installation manual.

Previous value of 0 doesn't have a documented purpose, or a documented impact in systemd. TimeoutSec affects both TimeoutStartSec and TimeoutStopSec, and there doesn't seem to be a reason to affect start.

  • other
    • PR: chore: change systemd example TimeoutStopSec -> infinity
Currently the example systemd unit will not allow the runner to do a graceful shutdown, even if `shutdown_timeout` is set. By changing the timeout to infinite, it should allow `shutdown_timeout` to be effective. An even better value would be to set it up to `shutdown_timeout` plus a small margin to allow for internal error recovery, but as these are configured separately, this seems like the best default that can be provided. This example file is referenced in the binary installation manual. Previous value of `0` doesn't have a documented purpose, or a documented impact in systemd. `TimeoutSec` affects both `TimeoutStartSec` and `TimeoutStopSec`, and there doesn't seem to be a reason to affect start. <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - other - [PR](https://code.forgejo.org/forgejo/runner/pulls/1551): <!--number 1551 --><!--line 0 --><!--description Y2hvcmU6IGNoYW5nZSBzeXN0ZW1kIGV4YW1wbGUgVGltZW91dFN0b3BTZWMgLT4gaW5maW5pdHk=-->chore: change systemd example TimeoutStopSec -> infinity<!--description--> <!--end release-notes-assistant-->
chore: change TimeoutStopSec -> infinity
All checks were successful
checks / validate pre-commit-hooks file (pull_request) Successful in 53s
checks / validate mocks (pull_request) Successful in 1m19s
issue-labels / release-notes (pull_request_target) Successful in 7s
checks / Build Forgejo Runner (pull_request) Successful in 1m40s
checks / Build unsupported platforms (pull_request) Successful in 1m12s
checks / runner exec tests (pull_request) Successful in 1m33s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 13m31s
checks / Run integration tests with Podman (pull_request) Successful in 13m10s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 15m26s
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
cascade / debug (pull_request_target) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
cascade / end-to-end (pull_request_target) Successful in 30s
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
cascade / forgejo (pull_request_target) Successful in 2m7s
fac6c55856
aahlenst approved these changes 2026-06-04 12:27:13 +00:00
viceice approved these changes 2026-06-04 12:28:42 +00:00
mfenniak deleted branch set-timeoutstopsec 2026-06-04 13:57:55 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
forgejo/runner!1551
No description provided.