]> git.meshlink.io Git - catta/commitdiff
arch linux init script patch by maro
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Nov 2005 23:59:08 +0000 (23:59 +0000)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Nov 2005 23:59:08 +0000 (23:59 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1010 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

initscript/archlinux/avahi-daemon.in
initscript/archlinux/avahi-dnsconfd.in

index e99b375bc56b86d51e3d2e6101cc6bfd2a7c690f..1050cb0a7325f2827ae621cdd3927e5951fe6e87 100644 (file)
@@ -36,21 +36,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 +60,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
index beab29358b24782e101f0148017d8d397e971894..667a0f62b3031b66468a5596ba021e3e16883cef 100755 (executable)
@@ -36,21 +36,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 +60,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