]> git.meshlink.io Git - catta/blobdiff - initscript/archlinux/avahi-dnsconfd.in
l10n: Updates to Spanish (Castilian) (es) translation
[catta] / initscript / archlinux / avahi-dnsconfd.in
index 5bfbcbfec9549a41ed8fce8053c5937dbe7f75c5..667a0f62b3031b66468a5596ba021e3e16883cef 100755 (executable)
@@ -36,37 +36,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}"
        ;;