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

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.

1 participant