LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-02-2015, 11:46 AM   #1
wirawan0
Member
 
Registered: Aug 2003
Location: Virginia, USA
Distribution: Mandrake 9.1, SuSE 9.2, Ubuntu 7.04-10.04, Sabayon 5, Debian 6
Posts: 64

Rep: Reputation: 18
How to disable certain services (e.g. avahi-daemon) under systemd?


In Debian 8 which uses systemd, the avahi service is enabled by default. It flooded my syslog with usesless messages like

Code:
Aug 21 10:42:54 wirawan2 avahi-daemon[1474]: Invalid response packet from host xxx.xxx.xxx.xxx.
Aug 21 10:42:54 wirawan2 avahi-daemon[1474]: Invalid response packet from host xxx.xxx.xxx.xxx.
Aug 21 10:42:55 wirawan2 avahi-daemon[1474]: Invalid response packet from host xxx.xxx.xxx.xxx.
Aug 21 10:42:55 wirawan2 avahi-daemon[1474]: Invalid response packet from host xxx.xxx.xxx.xxx.
Aug 21 10:42:55 wirawan2 avahi-daemon[1474]: Invalid response packet from host xxx.xxx.xxx.xxx.
Tons of them! Out of the 16 syslog samples I have, it contains over 606000 lines of that! Yikes!

Frankly I do not like avahi daemon and don't care to have it running on my system. In particular, this software sniffs everyone on the network.

So here is my question: How to disable avahi daemon for good in systemd-based system and prevent its name being called by anyone (so to speak). I tried several commands:

Code:
systemd stop avahi-daemon
systemd disable avahi-daemon
but these do not persist across reboot, and in particular it can still be activated somehow. I found another way, which is to mask the service:

Code:
systemd mask avahi-daemon
Once I masked avahi-daemon, my syslog is still filled with this error--much less frequency but still annoying:

Code:
Sep  2 11:57:33 wirawan2 dbus[1486]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
Sep  2 11:57:33 wirawan2 dbus[1486]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.Avahi.service': Unit dbus-org.freedesktop.Avahi.service failed to load: No such file or directory.
What is actually the proper way to remove avahi daemon from operating? dbus is still trying to call for avahi daemon.

Wirawan
 
Old 09-03-2015, 04:11 AM   #2
wroom
Member
 
Registered: Dec 2009
Location: Sweden
Posts: 159

Rep: Reputation: 31
Have you tried to simply uninstall the avahi-daemon?

I works for me.
 
Old 09-04-2015, 07:48 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,881
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
In directory: /etc/systemd/system/multi-user.target.wants there will be a symbolic link for the service to enable avahi. Just remove that link.
 
Old 09-06-2015, 11:39 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Moderator response

Moved: This thread is more suitable in <Debian> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 09-06-2015, 11:46 AM   #5
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by wroom View Post
Have you tried to simply uninstall the avahi-daemon?

I works for me.
I do this also with no ill effects.
 
  


Reply

Tags
avahi, systemd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Avahi daemon not working how it should MaexIN Linux - Server 0 11-22-2013 06:45 PM
avahi daemon failure rdftheonly Linux - General 2 04-18-2010 06:16 PM
(Ubuntu) Avahi-Daemon errors runneri.q Linux - Wireless Networking 1 08-07-2008 07:06 PM
Avahi-daemon on startup OR13 Fedora 1 07-13-2006 12:24 PM
Ubuntu + avahi-daemon/tools Valhalla Linux - Software 0 12-10-2005 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration