I have added a line to my /usr/local/rc.d/avahi-daemon to ensure it runs before mountd: # BEFORE: mountd If I don't do this, and I am using avahi for local domain resolution (eg nas.local), it fails to resolve and breaks due to mountd loading before avahi-daemon has. There may be a better way to solve this, but this is how I fixed it. :)
Hello Brendan. Many thanks for your feedback about the issue. Could you provide ansvn diff against the current ports rcd script? It would be very much appreciated.
Created attachment 164212 [details] BEFORE: mountd patch
(In reply to Rodrigo N. Hernandez from comment #1) Any update on this one?
Some lines are changed in the initscript. But not BEFORE.. Is this still relevant?
A commit references this bug: Author: zi Date: Mon Aug 13 01:59:20 UTC 2018 New revision: 477047 URL: https://svnweb.freebsd.org/changeset/ports/477047 Log: - Ensure avahi-daemon starts before mountd PR: 205281 Submitted by: Brendan Molloy <brendan+freebsd@bbqsrc.net> Changes: head/net/avahi-app/files/patch-initscript_freebsd_avahi-daemon.sh.in
This patch keeps avahi-daemon from running at all. According to https://www.freebsd.org/doc/en_US.ISO8859-1/articles/rc-scripting/article.html, 'BEFORE:' means 'mountd' will run before avahi-daemon, not after. 'rcorder' also now shows a loop, and avahi-daemon goes down in flames since it can't find the dbus socket. More details tomorrow AM.
Sorry, I misspoke about 'BEFORE:' but rcorder generates a loop so rcorder can't figure out what order to run things in. This may be happening on my system because I have gnome or other things installed. I'll post the 'rcorder' output tomorrow when I have a chance to boot the machine up.
Created attachment 196282 [details] avahi-daemon failing to start, with 'BEFORE' line in place
Created attachment 196283 [details] avahi-daemon starting properly, with 'BEFORE' line removed
A commit references this bug: Author: zi Date: Fri Aug 17 13:26:17 UTC 2018 New revision: 477424 URL: https://svnweb.freebsd.org/changeset/ports/477424 Log: - Revert init script patch due to dependency issue with dbus/mountd - Bump PORTREVISION PR: 205281 Changes: head/net/avahi-app/Makefile head/net/avahi-app/files/patch-initscript_freebsd_avahi-daemon.sh.in
Brendan, Are you able to dive into this some more? I think we would need to remove DAEMON from the dbus REQUIRE list, but am unable to dive into what else this might affect at the moment.
Created attachment 258595 [details] BEFORE: mountd patch ^Triage: rebase patch.
Now that Avahi supports netlink [1], this patch should not be needed anymore. [1] https://cgit.freebsd.org/ports/commit/?id=feedba692d73ae3c0041c2d64d73a256ad747523