Commit 0da49e3
committed
fix(avahi): avoid restart on transient iface loss
Purpose of the change:
- Keep Avahi running when an allowed interface temporarily loses carrier or its address.
Before this change:
- rc.avahidaemon update recomputed active bindings and restarted Avahi whenever the active bind list differed from allow-interfaces.
- DHCP/network hooks could therefore restart Avahi while a wireless interface was still down.
Why that was a problem:
- Avahi already observes interface loss and recovery while running.
- Restarting during a temporary outage can start Avahi with no suitable network protocol, causing it to exit and remain stopped.
What the new change accomplishes:
- Avoids restarting Avahi when the only bind difference is an allowed interface that is currently inactive.
- Still restarts when an active interface is newly added to the bind list or an active interface is deliberately removed.
How it works:
- rc.avahidaemon update compares current and recomputed bind lists.
- The restart decision now checks whether changed interfaces are active before calling avahid_restart.1 parent 982b3c2 commit 0da49e3
1 file changed
Lines changed: 45 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
122 | 162 | | |
123 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
124 | 168 | | |
125 | 169 | | |
126 | 170 | | |
| |||
0 commit comments