X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=initscript%2Fdebian%2Favahi-daemon.in;h=3a68781f8b7a5fc6db3e2d6c900ff84475bb8010;hb=25681df85706bbdc5d6ad011537b7b4f7d05cae5;hp=3145f3aef0cb227ea554e99f0e935d8a230a195b;hpb=3f8227311e734f408e34d114be975f400b20c989;p=catta diff --git a/initscript/debian/avahi-daemon.in b/initscript/debian/avahi-daemon.in index 3145f3a..3a68781 100755 --- a/initscript/debian/avahi-daemon.in +++ b/initscript/debian/avahi-daemon.in @@ -93,8 +93,7 @@ test -x $DAEMON || exit 0 d_start() { modprobe capability >/dev/null 2>&1 || true - $DAEMON -c - [ $? = 0 ] && exit 0 + $DAEMON -c && return 0 if [ -s /etc/localtime ]; then if [ ! -d /etc/avahi/etc ]; then @@ -110,28 +109,21 @@ d_start() { # Function that stops the daemon/service. # d_stop() { - $DAEMON -c - [ $? != 0 ] && exit 0 - - $DAEMON -k + $DAEMON -c && $DAEMON -k } # # Function that reload the config file for the daemon/service. # d_reload() { - $DAEMON -c - [ $? != 0 ] && exit 0 - - $DAEMON -r + $DAEMON -c && $DAEMON -r } # # Function that check the status of the daemon/service. # d_status() { - $DAEMON -c - [ $? = 0 ] && echo "$DESC is running" || echo "$DESC is not running" + $DAEMON -c && echo "$DESC is running" || echo "$DESC is not running" } case "$1" in