https://wiki.archlinux.org/index.php/avahiWhat does the avahi-daemon do ?
Why is it needed ?
There is no harm in leaving it running.its a linux version of Apple's Zeroconf implementation, Bonjour
e.g. its not needed on windows devices
i have zero apple devices in my house
there really should be a setting to turn off avahi
Just checked my router and /usr/sbin/avahi-daemon is not even there. Then I remembered compiling the firmware with "MDNS=n". I think it's also possible to bind mount any program to /dev/null, to prevent it from executing. Then when you run it, Linux will return "permission denied".I have zero Apple devices in my house.
Will it work?What would be the syntax for using bindfs to bind mount /usr/sbin/avahi-daemon to /dev/null ?
#!/bin/sh
PRG="/usr/sbin/avahi-daemon"
/usr/bin/killall ${PRG##*/}; [ -f "$PRG" ] && [ ! -h "$PRG" ] && /bin/mount -o bind /dev/null "$PRG"
This is what I use in services-start:Will it work?
/jffs/scripts/init-start
Code:#!/bin/sh PRG="/usr/sbin/avahi-daemon" /usr/bin/killall ${PRG##*/}; [ -f "$PRG" ] && [ ! -h "$PRG" ] && /bin/mount -o bind /dev/null "$PRG"
#!/bin/sh
/sbin/service stop_mdns
This scripts stops the avahi-daemon if it's running and then creates a bind mount to prevent it from being restarted, correct ? What do the "-f" and "-h" options do ? You don't think placing this in the init-start script would be too soon in the boot process ?
What issue? There is no "issue" reported in this thread. You're replying to a thread that's over 5 years old. Perhaps you intended replying to some different thread?I just had this issue pop up out of the blue today. In my case it was on Asus AX86U running AsusWrt-Merlin code version 386_7.0 which I've been running from the day of release which I believe was about 10 days ago or so. I use my AX86U as a router on FiOS's network (no ISP's modem or router rather direct ethernet link into FiOS's infrastructure). Alert came in out of the blue, have not been doing any changes in my home of any kind or messed with configs, that WANlink is down /up/down/up/down/u...etc and when it stabilized I noticed these messages within syslog. Took the above-suggested code, created the suggested script, rebooted and the messages are gone(thanks for the script code, whoever developed it). However, I have another issue now, and am not sure is it my router or provider, but my WAN speed dropped 6 fold. Currently, no time to deal with the provider but will soon, and when I do if I get any useful info will update this post.
avahi-daemon issue which is described here https://www.snbforums.com/threads/d...sus-rt-ac68u-as-it-is-consuming-50-cpu.39502/ and lead me to this page.What issue? There is no "issue" reported in this thread. You're replying to a thread that's over 5 years old. Perhaps you intended replying to some different thread?
So you're seeing the same CPU usage problem that was last reported 5 years ago on a completely different firmware branch?avahi-daemon issue which is described here https://www.snbforums.com/threads/d...sus-rt-ac68u-as-it-is-consuming-50-cpu.39502/ and lead me to this page.
Yes (it was also consuming NVRAM resources) and the following was part of it (lines are from my AX86U syslog):So you're seeing the same CPU usage problem that was last reported 5 years ago on a completely different firmware branch?
That's a completely different issue to the one described in that other thread. Your problem is more like the one described in this thread and other similar threads.Yes (it was also consuming NVRAM resources) and the following was part of it (lines are from my AX86U syslog):
Jul 6 11:04:58 avahi-daemon[1814]: Host name conflict, retrying with RT-AX86U-E078-2
Jul 6 11:04:59 avahi-daemon[1814]: Host name conflict, retrying with RT-AX86U-E078-3
Jul 6 11:04:59 avahi-daemon[1814]: Host name conflict, retrying with RT-AX86U-E078-4
Jul 6 11:05:00 avahi-daemon[1814]: Host name conflict, retrying with RT-AX86U-E078-5
Jul 6 11:05:01 avahi-daemon[1814]: Host name conflict, retrying with RT-AX86U-E078-6
Jul 6 11:05:02 avahi-daemon[1814]: Host name conflict, retrying with RT-AX86U-E078-7
Jul 6 11:05:03 avahi-daemon[1814]: Host name conflict, retrying with RT-AX86U-E078-8
Jul 6 11:05:04 avahi-daemon[1814]: Host name conflict, retrying with RT-AX86U-E078-9
Jul 6 11:05:05 avahi-daemon[1814]: Host name conflict, retrying with RT-AX86U-E078-10
Jul 6 11:05:06 avahi-daemon[1814]: Host name conflict, retrying with RT-AX86U-E078-11
Jul 6 11:05:07 avahi-daemon[1814]: Host name conflict, retrying with RT-AX86U-E078-12
Jul 6 11:05:08 avahi-daemon[1814]: Host name conflict, retrying with RT-AX86U-E078-13
Jul 6 11:05:09 avahi-daemon[1814]: Host name conflict, retrying with RT-AX86U-E078-14
Jul 6 11:05:10 avahi-daemon[1814]: Host name conflict, retrying with RT-AX86U-E078-15
Jul 6 11:05:11 avahi-daemon[1814]: Host name conflict, retrying with RT-AX86U-E078-16
the script I found on this page helped disable the avahi and as soon as I ran it issue stopped.
Thanks sure read(s) like it, but this script helped disable avahi, so until I read somewhere that avahi dev has resolved it, I am leaving this script running.That's a completely different issue to the one described in that other thread. Your problem is more like the one described in this thread and other similar threads.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!