Skip to content

Added a time-out to active service check to ensure it doesn't loop forever - #460

Open
SheFellFromHeaven wants to merge 2 commits into
Servarr:masterfrom
SheFellFromHeaven:master
Open

Added a time-out to active service check to ensure it doesn't loop forever#460
SheFellFromHeaven wants to merge 2 commits into
Servarr:masterfrom
SheFellFromHeaven:master

Conversation

@SheFellFromHeaven

Copy link
Copy Markdown

Hello! Used this script today to install Lidarr, but the dependency list was apparently incomplete, since libicu76 is no longer part of Debian as part of the base install, and the installation script didn't catch that. Due to that, the script got all the way to starting the Lidarr service in systemctl, only for it to get stuck there as the dependency was missing and the service couldn't get started.

I added a small counter that makes sure that the loop ends after ~15 seconds, ensuring that if something goes wrong, it doesn't wait forever for a service that will never start. I've tested it and it works. The timeout can be changed, I just thought 15 seconds was good enough.

Example image of what happens when it fails to start properly:
Example of service failing and it exiting

@SheFellFromHeaven

Copy link
Copy Markdown
Author

Workflow failure seems unrelated to anything I've changed

bakerboy448 added a commit to bakerboy448/ServarrWiki that referenced this pull request Sep 4, 2026
The post-install loop waited on `systemctl is-active` with no exit, so a service
that never starts (for example a missing libicu dependency) looped forever. Add
a 15-attempt guard that reports the failure and exits 1. Cherry-picked from
community PR Servarr#460.
@bakerboy448

bakerboy448 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Your fix here is the right approach. The same 15-attempt guard is included in #467 (split out of #466), with only a slightly more detailed error message; this PR is the original. Either can land, flagging so a maintainer can dedupe and credit #460.

augustuen pushed a commit that referenced this pull request Sep 5, 2026
The post-install loop waited on `systemctl is-active` with no exit, so a service
that never starts (for example a missing libicu dependency) looped forever. Add
a 15-attempt guard that reports the failure and exits 1. Cherry-picked from
community PR #460.
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