fix(avahi): recover stopped daemon even when bind list matches config#2664
fix(avahi): recover stopped daemon even when bind list matches config#2664elibosley wants to merge 1 commit into
Conversation
Gate the allow-interfaces mismatch check only on the running restart path; recover a stopped daemon independently when interfaces are back. Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe PR restructures the ChangesAvahi daemon recovery and update
Sequence Diagram(s)No sequence diagram is necessary; the state flow is captured in the hidden review stack diagram above. Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
🔧 PR Test Plugin AvailableA test plugin has been generated for this PR that includes the modified files. Version: 📥 Installation Instructions:Install via Unraid Web UI:
Alternative: Direct Download
|
Follow-up to #2661 (already merged), addressing CodeRabbit's review.
avahid_updatepreviously gated both the restart and start paths behind theallow-interfaces != BINDmismatch. That meant a stopped daemon would stay down if interfaces recovered to the same bind list — common after transient interface loss.This splits on daemon state instead:
checkpasses andallow-interfacesdiffers from$BIND(unchanged).avahid_startwhenevercheckpasses and$BINDis non-empty, regardless of whether the bind list matches the saved config.Verified with
bash -n etc/rc.d/rc.avahidaemonandgit diff --check.Summary by CodeRabbit