avahi-daemon Linux サービスはクライアント マシンで実行され、ネットワーク ベースの Zeroconf サービス検出を実行します。 Avahi は、Zeroconf ネットワーク用の DNS サービス検出およびマルチキャスト DNS 仕様の実装です。ユーザー アプリケーションは、Linux D-Bus メッセージ パッシングを使用して、検出されたネットワーク サービスとリソースの通知を受け取ります。デーモンは、応答をキャッシュするアプリケーションの作業を調整し、ネットワーク トラフィックを最小限に抑えます。
Avahi は、Python や Mono などの言語バインディングのセットを提供します。モジュール化されたアーキテクチャにより、Avahi は GNOME の仮想ファイル システムや KDE の入出力アーキテクチャなどの主要なデスクトップ コンポーネントにすでに統合されています。詳細な仕様については、http://avahi.org/ を参照してください。
avahi RPM パッケージは /usr/sbin/avahi-daemon を提供します デーモンとその構成ファイル
サービス コントロール
avahi-daemon サービスをオンデマンドで管理するには、service(8) ツールを使用するか、/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}
利用可能なコマンドは次のとおりです:
コマンド | 説明 |
---|---|
開始 | avahi-daemon デーモンを起動します。 |
停止 | avahi-daemon デーモンを停止します。 |
ステータス | avahi-daemon デーモンが実行されているかどうかを報告します。 |
再起動 | 停止してから開始するコマンド シーケンスに相当します。 |
condrestart | avahi-daemon デーモンが現在実行中の場合、これは再起動コマンドと同じです。デーモンが実行されていない場合、アクションは実行されません。 RPM パッケージのインストールで、まだ実行されていないサービスの開始を避けるためによく使用されます。 |
起動時に avahi-daemon サービスを管理するには、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
構成
以下はサンプル構成ファイル /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=3CentOS/RHEL で avahi-daemon サービスを無効にする方法