summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Estienne <sebastien.estienne@gmail.com>2006-03-24 14:02:47 +0000
committerSebastien Estienne <sebastien.estienne@gmail.com>2006-03-24 14:02:47 +0000
commit166553baf33290c08e41a9fb67567165c0e70fc5 (patch)
tree6e13932904de4bcefa192ee4a1f09bf2eead6228
parente93cc8e50b2f8b16a67867b199a55d224eaa8bd8 (diff)
log end_msg for debian initscript
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1181 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rwxr-xr-xinitscript/debian/avahi-daemon.in16
1 files changed, 4 insertions, 12 deletions
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