X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=initscript%2FDebian%2Favahi-dnsconfd.in;h=075d62c7111eef792b669cea28216a068cdda418;hb=8b5cd6ffd9137b14b7ed678f10a551e3911e4a40;hp=eb67a910ccca298a423978056a37f84396f3e2f5;hpb=656aec05e83a12adfea8c5d98da2c0220ec54e4a;p=catta diff --git a/initscript/Debian/avahi-dnsconfd.in b/initscript/Debian/avahi-dnsconfd.in index eb67a91..075d62c 100755 --- a/initscript/Debian/avahi-dnsconfd.in +++ b/initscript/Debian/avahi-dnsconfd.in @@ -1,4 +1,24 @@ -#! /bin/sh +#!/bin/sh + +# $Id$ + +# 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. + # # avahi-dnsconfd avahi dns configuration daemon # Daemon for ZeroConf @@ -60,7 +80,7 @@ fi #set -e PATH=/sbin:/bin:/usr/sbin:/usr/bin -DESC="Avahi Dns Config daemon" +DESC="Avahi Unicast DNS Configuration Daemon" NAME="avahi-dnsconfd" DAEMON="@sbindir@/$NAME" @@ -84,7 +104,7 @@ d_stop() { # # Function that reload the config file for the daemon/service. # -d_reload() { +d_refresh() { $DAEMON -r } @@ -100,12 +120,12 @@ case "$1" in d_stop log_end_msg $? ;; - reload) - log_begin_msg "Reloading config file for $DESC: $NAME" - d_reload + refresh) + log_begin_msg "Refreshing $DESC: $NAME" + d_refresh log_end_msg $? ;; - restart|force-reload) + reload|restart|force-reload) log_begin_msg "Restarting $DESC: $NAME" d_stop sleep 1