Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions etc/rc.d/rc.avahidaemon
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,16 @@ avahid_reload(){
}

avahid_update(){
if check && [[ "$(this allow-interfaces)" != "$BIND" ]]; then
if avahid_running; then
if avahid_running; then
# only restart a running daemon when the computed bind list changed
if check && [[ "$(this allow-interfaces)" != "$BIND" ]]; then
log "Updating $DAEMON..."
avahid_restart # note we need restart here, not reload in order to update interfaces
else
fi
else
# recover daemon when interfaces are back, even if config already matches computed bind list
if check && [[ -n $BIND ]]; then
log "Recovering $DAEMON..."
avahid_start # handle case where avahi-daemon exited because no suitable interfaces
fi
fi
Expand Down
Loading