projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bumped version to 3.7.0, updated Specfile and Debian changelog
[collectd.git]
/
debian
/
collectd.init.d
diff --git
a/debian/collectd.init.d
b/debian/collectd.init.d
index
2006471
..
13118fa
100755
(executable)
--- a/
debian/collectd.init.d
+++ b/
debian/collectd.init.d
@@
-13,6
+13,7
@@
NAME=collectd
DAEMON=/usr/sbin/$NAME
SCRIPTNAME=/etc/init.d/$NAME
ARGS=""
DAEMON=/usr/sbin/$NAME
SCRIPTNAME=/etc/init.d/$NAME
ARGS=""
+CONFIG=/etc/collectd.conf
# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0
# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0
@@
-22,32
+23,13
@@
then
. /etc/default/$NAME
fi
. /etc/default/$NAME
fi
-if [ -n "$DATA_DIR" ]; then
- ARGS="-D $DATA_DIR"
-fi
-
-if [ -n "$PING_HOST" ]; then
- for HOST in $PING_HOST
- do
- ARGS="$ARGS -p $HOST"
- done
-fi
-
#
# Function that starts the daemon/service.
#
d_start() {
#
# Function that starts the daemon/service.
#
d_start() {
- if [ "x$START_SERVER" = "xyes" ]
- then
- $DAEMON -s $ARGS
- fi
- if [ "x$START_CLIENT" = "xyes" ]
- then
- $DAEMON -c $ARGS
- fi
- if [ "x$START_SERVER" != "xyes" -a "x$START_CLIENT" != "xyes" ]
+ if [ -e "$CONFIG" ]
then
then
- start-stop-daemon --start --quiet --exec $DAEMON -- -
l $ARGS
+ start-stop-daemon --start --quiet --exec $DAEMON -- -
C "$CONFIG"
fi
}
fi
}