X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=initscript%2Farchlinux%2Favahi-daemon.in;h=6ae252db0396a5ed7288499d5d303b35d5bc8cd8;hb=46109dfec75534fe270c0ab902576f685d5ab3a6;hp=020db3e0a23ec98e83e0c685653c5acadc7db26e;hpb=da5014cb5f3d06271ae79dc28354a03c7392cf0f;p=catta diff --git a/initscript/archlinux/avahi-daemon.in b/initscript/archlinux/avahi-daemon.in index 020db3e..6ae252d 100644 --- a/initscript/archlinux/avahi-daemon.in +++ b/initscript/archlinux/avahi-daemon.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,37 +34,37 @@ 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 stat_done - endif + fi + ;; *) echo "usage: $0 {start|stop|restart|reload}" ;;