+For version 3.6:
+* Fix RPM package
+
For version 3.*:
* Port nfs module to solaris
* Port tape module to Linux
* Maybe look into porting the serial module
* Ping bug (disabled)
-* Handle sigterm
+* Write battery status, using /proc/pmu/battery_%i
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
. /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() {
- 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
- start-stop-daemon --start --quiet --exec $DAEMON -- -l $ARGS
+ start-stop-daemon --start --quiet --exec $DAEMON -- -C "$CONFIG"
fi
}