GNU/Linux >> Tutoriels Linux >  >> Linux

Service d'exploitation Linux "avahi-daemon"

Le service Linux avahi-daemon s'exécute sur les machines clientes pour effectuer une découverte de service Zeroconf basée sur le réseau. Avahi est une implémentation des spécifications DNS Service Discovery et Multicast DNS pour Zeroconf Networking. Les applications utilisateur reçoivent une notification des services et ressources réseau découverts à l'aide de la transmission de messages Linux D-Bus. Le démon coordonne les efforts de l'application dans la mise en cache des réponses, ce qui permet de minimiser le trafic réseau.

Avahi fournit un ensemble de liaisons de langage, notamment Python et Mono. En raison de son architecture modulaire, Avahi est déjà intégré dans les principaux composants de bureau comme le système de fichiers virtuel de GNOME ou l'architecture d'entrée/sortie de KDE. Consultez http://avahi.org/ pour plus de spécifications.

Le paquet avahi RPM fournit le /usr/sbin/avahi-daemon démon et ses fichiers de configuration.

Contrôle des services

Pour gérer le service avahi-daemon à la demande, utilisez l'outil service(8) ou exécutez directement le script /etc/init.d/avahi-daemon :

# service avahi-daemon 
Usage: /etc/init.d/avahi-daemon {start|stop|status|restart|condrestart}
# /etc/init.d/avahi-daemon 
Usage: /etc/init.d/avahi-daemon {start|stop|status|restart|condrestart}

Les commandes disponibles sont :

Commande Description
démarrer Démarrez le démon avahi-daemon.
arrêter Arrêtez le démon avahi-daemon.
statut Signaler si le démon avahi-daemon est en cours d'exécution.
redémarrer Équivalent à une séquence de commandes d'arrêt puis de démarrage.
condrestart Si le démon avahi-daemon est en cours d'exécution, cela équivaut à une commande de redémarrage. Si le démon n'est pas en cours d'exécution, aucune action n'est entreprise. Souvent utilisé dans l'installation du package RPM pour éviter de démarrer un service qui n'est pas déjà en cours d'exécution.

Pour gérer le service avahi-daemon au démarrage, utilisez la commande chkconfig :

# chkconfig --list avahi-daemon
avahi-daemon 0:off 1:off 2:off 3:off 4:off 5:off 6:off
# chkconfig avahi-daemon on
# chkconfig --list avahi-daemon
avahi-daemon 0:off 1:off 2:on 3:on 4:on 5:on 6:off

Configuration

Ci-dessous se trouve l'exemple de fichier de configuration /etc/avahi/avahi-daemon.conf :

# cat /etc/avahi/avahi-daemon.conf
# $Id: avahi-daemon.conf 1155 2006-02-22 22:54:56Z lennart $
#
# This file is part of avahi.
#
# avahi is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# avahi is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with avahi; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.

# See avahi-daemon.conf(5) for more information on this configuration
# file!

[server]
#host-name=foo
#domain-name=local
browse-domains=0pointer.de, zeroconf.org
use-ipv4=yes
use-ipv6=yes
#check-response-ttl=no
#use-iff-running=no
#enable-dbus=yes
#disallow-other-stacks=no
#allow-point-to-point=no

[wide-area]
enable-wide-area=yes

[publish]
#disable-publishing=no
#disable-user-service-publishing=no
#add-service-cookie=yes
#publish-addresses=yes
#publish-hinfo=yes
#publish-workstation=yes
#publish-domain=yes
#publish-dns-servers=192.168.50.1, 192.168.50.2
#publish-resolv-conf-dns-servers=yes

[reflector]
#enable-reflector=no
#reflect-ipv=no

[rlimits]
#rlimit-as=
rlimit-core=0
rlimit-data=4194304
rlimit-fsize=0
rlimit-nofile=30
rlimit-stack=4194304
rlimit-nproc=3
Comment désactiver le service avahi-daemon dans CentOS/RHEL


Linux
  1. Service du système d'exploitation Linux "nfs"

  2. Service du système d'exploitation Linux 'microcode_ctl'

  3. Service d'exploitation Linux "hplip"

  4. Service d'exploitation Linux "irqbalance"

  5. Service de système d'exploitation Linux "rpcgssd"

Service de système d'exploitation Linux « ldap »

Service d'exploitation Linux "yppasswdd"

Service d'exploitation Linux "xendomains"

Service de système d'exploitation Linux « nscd »

Service d'exploitation Linux "squid"

Service d'exploitation Linux "smartd"