]> git.meshlink.io Git - catta/blobdiff - initscript/fedora/avahi-daemon.in
pull fedora init script to prio 24
[catta] / initscript / fedora / avahi-daemon.in
index f26757752833eb6a6bf14a3e2005e1d7a2126725..59f854e7e01da5428b675d0abcbc61b3d482a647 100644 (file)
@@ -2,28 +2,28 @@
 #
 # avahi-daemon:       Starts the Avahi Daemon
 #
-# chkconfig: 345 96 02
+# chkconfig: 345 24 02
 # description: This is a daemon which runs on client machines to perform \
 #              Zeroconf service discovery on a network. avahi-daemon must be \
 #              running on systems  that use Avahi for service discovery. \
 #              Avahi-daemon should not be running otherwise.
 # processname: avahi-daemon
-# config: 
-
-OTHER_AVAHI_OPTS=""
-
-# Source function library.
-. /etc/init.d/functions
-. /etc/sysconfig/network
+# config:
 
 AVAHI_BIN=@sbindir@/avahi-daemon
 
-if [ $1 == 'status' ]; then
+if [ "$1" == 'status' ]; then
     test -x $AVAHI_BIN || exit 4
-else 
+else
     test -x $AVAHI_BIN || exit 5
 fi
 
+OTHER_AVAHI_OPTS=""
+
+# Source function library.
+. /etc/init.d/functions
+. /etc/sysconfig/network
+
 LOCKFILE=/var/lock/subsys/avahi-daemon
 
 base=${0##*/}
@@ -91,7 +91,7 @@ case "$1" in
        restart
        ;;
   reload)
-        reload 
+        reload
        ;;
   condrestart)
        if [ -f $LOCKFILE ]; then
@@ -105,4 +105,3 @@ case "$1" in
 esac
 
 exit $RETVAL
-