Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7410

Advanced users • [Solved] Preventing avahi-daemon from running

$
0
0
Bit of an odd one, this.

I have bookworm desktop 64 installed on both Pi4 and Pi5.

On the Pi4, when I ran

Code:

sudo systemctl disable avahi-daemonsudo reboot
after the reboot, there are no avahi-daemon processes running, and netstat does not report anything apart from the expected ssh/cups stuff running.

On the Pi5, I did the same, and naively, expected the same (or broadly similar) results.
However, I still see avahi-daemon running, and netstat -tunlp confirms this.

Short of "apt remove avahi-daemon", how do I get this to stop?
I have tried

Code:

sudo systemctl disable avahi-daemonsudo systemctl disable avahi-daemon.servicesudo systemctl disable avahi-daemon.socketsudo reboot
but I cannot get it not to start on reboot.


SOLVED!
On the Pi4 I had disabled cups and cups-browsed. Turns out that the latter contained the lines:

Code:

After:=cups.service avahi-daemon.service network-online.targetWants=avahi-daemon.service network-online.target
I backed up the /usr/lib/systemd version of the service file, removed the two references, and rebooted, now all is well.

Statistics: Posted by SteveSpencer — Tue Aug 27, 2024 11:07 am — Replies 2 — Views 52



Viewing all articles
Browse latest Browse all 7410

Trending Articles