LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-06-2021, 02:22 PM   #1
notadoc
Member
 
Registered: Jan 2015
Posts: 113

Rep: Reputation: Disabled
avahi-daemon disabled but is still started


I've run systemctl to disable avahi-daemon.service and avahi-daemon.socket. And yet, they both are running! I suspect that cupsd is responsible, but I don't know how to prove it:
Quote:
● avahi-daemon.socket - Avahi mDNS/DNS-SD Stack Activation Socket
Loaded: loaded (/lib/systemd/system/avahi-daemon.socket; disabled; vendor preset: enabled)
Active: active (running) since Thu 2021-05-06 13:18:56 EDT; 5min ago
Triggers: ● avahi-daemon.service

● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/lib/systemd/system/avahi-daemon.service; disabled; vendor preset: enabled)
Active: active (running) since Thu 2021-05-06 13:18:57 EDT; 2min 44s ago
TriggeredBy: ● avahi-daemon.socket
What can I do to prevent these progs from running. I need cupsd for printing.
 
Old 05-06-2021, 03:28 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Disabling a unit does not stop it. It only prevents it from starting automatically, e.g. when rebooting. To stop it, use systemctl stop avahi-daemon or systemctl disable avahi-daemon --now.

Last edited by berndbausch; 05-06-2021 at 03:29 PM.
 
Old 05-07-2021, 12:39 PM   #3
notadoc
Member
 
Registered: Jan 2015
Posts: 113

Original Poster
Rep: Reputation: Disabled
I'm aware of the
Code:
systemctl stop
option, but I want to *prevent* the daemon/socket startup, instead of using
Code:
systemctl stop
at each boot. Perhaps
Code:
systemctl mask
is the way to go?
 
Old 05-07-2021, 06:42 PM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
When you disable a unit, it won't be activated automatically. It can still be activated manually with systemctl start.
When you mask a unit, it can't be activated at all.

You say that you want to prevent Avahi startup. If you mean automatic startup, you should be OK, because you disabled both units. If you want to prevent manual startup, mask them.
 
Old 05-08-2021, 02:01 PM   #5
notadoc
Member
 
Registered: Jan 2015
Posts: 113

Original Poster
Rep: Reputation: Disabled
Looks like 'mask' is the solution to my problem. I just wish I knew which app was calling avahi-daemon.socket.
Thanks for replying.
 
  


Reply



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
Can't get avahi to install (trying to get Netatalk and Avahi running) MarcusWebb1966 Gentoo 4 07-28-2011 03:55 AM
(Ubuntu) Avahi-Daemon errors runneri.q Linux - Wireless Networking 1 08-07-2008 07:06 PM
(Ubuntu) Avahi-Daemon errors runneri.q Linux - Newbie 1 08-06-2008 07:18 AM
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 - Software

All times are GMT -5. The time now is 11:00 PM.

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