DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 8th March 2016
betweendayandnight betweendayandnight is offline
friendly
 
Join Date: Jul 2015
Posts: 67
Default Disable avahi daemon

I installed Chromium web browser and was told that the following rcscripts had been installed:

Code:
/etc/rc.d/avahi_daemon
/etc/rc.d/avahi_dnsconfd
1. How do I disable avahi daemon? And to re-enable it if errors crop up?

2. What is the command to list all daemons running in the background at a particular point in time?
Reply With Quote
  #2   (View Single Post)  
Old 8th March 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

These daemons will not be enabled unless you explicitly take action. Only the scripts have been installed.

The configuration file for package daemons is /etc/rc.conf.local, one of the files in the rc.conf(8) tool chain, which you may manage with the rcctl(8) command rather than editing by hand.

Additional man pages that may be helpful to review: rc.d(8) rc.subr(8), and while you're learning about the startup processes, rc(8) too.
Reply With Quote
  #3   (View Single Post)  
Old 8th March 2016
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Another helpful information source is
/usr/local/share/doc/pkg-readmes.
for example:
Code:
PooBear$ pwd
/usr/local/share/doc/pkg-readmes
PooBear$ ls 
a2ps-4.14p10                            gnome-mplayer-1.0.9p1v0
avahi-0.6.31p19                         gtk+2-2.24.28
consolekit-0.4.6p14                     gtk+3-3.16.6
cups-filters-1.0.71p1                   inkscape-0.91p2
dbus-1.8.20v0                           ispell-3.2.06p9
ffmpeg-20150723p1                       mplayer-20150510p2
firefox-esr-38.6.1                      rtorrent-0.9.4p0v0
foomatic-db-engine-4.0.12p0             sane-backends-1.0.24p6
gamin-0.1.10p21                         texlive_base-2014p0
glib2-2.44.1                            xdg-utils-1.1.0rc3p0
PooBear$ cat avahi-0.6.31p19                                                   
$OpenBSD: README-main,v 1.8 2015/07/28 14:46:13 ajacoutot Exp $

+-----------------------------------------------------------------------
| Running avahi-0.6.31p19 on OpenBSD
+-----------------------------------------------------------------------

For proper functionality, multicast(4) needs to be enabled. To do so,
add the following line to /etc/rc.conf.local(8):
    multicast_host=YES

Note that you MUST have a system-wide D-BUS daemon running BEFORE
starting avahi, e.g.:
    rcctl set messagebus status on
    rcctl set avahi_daemon status on
    rcctl order messagebus avahi_daemon

A rule similar to the one below can be used in pf.conf(5) to pass
incoming avahi (multicast) traffic:
    pass proto udp from any to 224.0.0.251 port mdns allow-opts
Reply With Quote
  #4   (View Single Post)  
Old 9th March 2016
betweendayandnight betweendayandnight is offline
friendly
 
Join Date: Jul 2015
Posts: 67
Default

Quote:
Originally Posted by shep View Post
Another helpful information source is
/usr/local/share/doc/pkg-readmes.
Thanks but I did read the pkg-readme on avahi before I created this thread. There was nothing in it to help me understand how to disable avahi daemon.
Reply With Quote
  #5   (View Single Post)  
Old 9th March 2016
betweendayandnight betweendayandnight is offline
friendly
 
Join Date: Jul 2015
Posts: 67
Default

Quote:
Originally Posted by jggimi View Post
These daemons will not be enabled unless you explicitly take action.
Sorry what do you mean exactly by "unless you explicitly take action"? Like launching an application or software that invokes avahi daemon?

If an application or software that invokes avahi daemon is shut down, will avahi daemon shut down too?
Reply With Quote
  #6   (View Single Post)  
Old 9th March 2016
betweendayandnight betweendayandnight is offline
friendly
 
Join Date: Jul 2015
Posts: 67
Default

What is the command to list all daemons running in the background at a particular point in time?
Reply With Quote
  #7   (View Single Post)  
Old 9th March 2016
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Code:
rcctl set avahi_daemon status on
= on
Code:
rcctl set avahi_daemon status off
= off

rcctl(8)
Code:
DESCRIPTION
     The rcctl utility can enable or disable a base system service or a base
     system or package daemon in rc.conf.local(8) or display its configuration
     and status.  For a daemon, it can also change the command line arguments,
     the user to run as, the rc.d(8) action timeout or call its rc.d(8) daemon
     control script.

     The following commands are available (variable can be one of class,
     flags, status, timeout or user):

     [-df] action daemon
             Run the rc.d(8) daemon script with the action argument, passing
             through the specified options, if any.

     get service | daemon [variable]
             Display the value of service or daemon_variable.  If variable is
             empty, display all service or daemon variables and values in a
             format compatible with rc.conf(8).
Reply With Quote
  #8   (View Single Post)  
Old 9th March 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Quote:
Originally Posted by betweendayandnight View Post
Sorry what do you mean exactly by "unless you explicitly take action"?
In order for the avahi daemon to actually run, you would need to provision /etc/rc.conf.local so that the rc.d script runs during startup. As mentioned in my first response, you can edit the file manually or use the rcctl(8) command to make revisions to the script, or manually start daemons.

If you do nothing, the avahi daemon will never be run. The script was installed, but it will not execute without additional action from you.

Last edited by jggimi; 9th March 2016 at 04:32 AM. Reason: typo
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
dbus and avahi? kerasi OpenBSD Packages and Ports 2 8th January 2015 07:21 PM
need help with pre-threaded TCP/IP daemon unixjingleman Programming 4 30th March 2013 08:01 PM
Comment out '/etc/inetd.conf' and disable 'inetd' daemon J65nko Guides 0 24th January 2010 10:53 PM
Run daemon as other user than root phreud FreeBSD General 8 11th November 2008 04:11 AM
dbus-daemon lumiwa FreeBSD General 2 2nd October 2008 12:05 AM


All times are GMT. The time now is 02:58 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick