Commit 93ada95
fix: wait for arr service to be ready for download clients (#128)
* fix: wait for arr service to be ready before configuring download clients
The downloadclients oneshot service only depended on the config service,
not the arr service itself. Since arr services use Type=simple, systemd
considers them active as soon as the process starts — before they are
actually listening on their port. This caused the downloadclients service
to fail at boot with connection refused errors.
Add the arr service to After/Requires and add an ExecStartPre readiness
check using curl --retry-connrefused to wait until the API is accepting
connections before proceeding.
* fix formatting
---------
Co-authored-by: Kiri Carlson <kiri@walawren.com>1 parent 0e4844b commit 93ada95
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
71 | 79 | | |
72 | 80 | | |
73 | 81 | | |
74 | 82 | | |
75 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
76 | 87 | | |
77 | 88 | | |
78 | 89 | | |
| |||
0 commit comments