]> git.meshlink.io Git - catta/blobdiff - initscript/archlinux/avahi-daemon.in
fix avahi_netlink_new to allow multiple netlinks per process
[catta] / initscript / archlinux / avahi-daemon.in
index e99b375bc56b86d51e3d2e6101cc6bfd2a7c690f..6ae252db0396a5ed7288499d5d303b35d5bc8cd8 100644 (file)
@@ -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,21 +34,21 @@ 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
         ;;
@@ -60,7 +58,7 @@ case "$1" in
         ;;
     reload)
         stat_busy "Reloading services for $DESC"
-        $DAEMON -r
+        $DAEMON -r > /dev/null 2>&1
         if [ $? -gt 0 ]; then
             stat_fail
         else