X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=initscript%2Farchlinux%2Favahi-dnsconfd.in;h=c57260e17eb2ed18ba80b2f54cbca657fa95da38;hb=739912d481e5126fd8b3c65c2eaf3f472b1a2162;hp=780b48b64904cebd866729ea15b0d84afd4a7753;hpb=5aed54b2ce23d07f45d90142b2cb4a1b95913588;p=catta diff --git a/initscript/archlinux/avahi-dnsconfd.in b/initscript/archlinux/avahi-dnsconfd.in index 780b48b..c57260e 100755 --- a/initscript/archlinux/avahi-dnsconfd.in +++ b/initscript/archlinux/avahi-dnsconfd.in @@ -1,7 +1,5 @@ #!/bin/bash -# $Id$ - # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it @@ -36,32 +34,31 @@ DAEMON="@sbindir@/$NAME" case "$1" in start) stat_busy "Starting $DESC" - $DAEMON -D + $DAEMON -D > /dev/null 2>&1 if [ $? -gt 0 ]; then stat_fail else - add_daemon avahi-daemon + add_daemon $NAME stat_done fi ;; stop) stat_busy "Stopping $DESC" - $DAEMON -k + $DAEMON -k > /dev/null 2>&1 if [ $? -gt 0 ]; then stat_fail else - rm_daemon avahi-daemon + rm_daemon $NAME stat_done fi ;; restart) $0 stop - sleep 1 $0 start ;; reload) stat_busy "Reloading services for $DESC" - $DAEMON -r + $DAEMON -r > /dev/null 2>&1 if [ $? -gt 0 ]; then stat_fail else