Move avahi logcheck stuff to the avahi state.