From 8d4ee27a45cc485a8690fe7a00b7c0c7d5ba5353 Mon Sep 17 00:00:00 2001 From: octo Date: Thu, 19 Jan 2006 22:36:26 +0000 Subject: [PATCH] Removed `/etc/default/collectd' from the debian package Updated `/etc/init.d/collectd' from the debian package Updates `TODO' --- TODO | 5 ++++- debian/collectd.init.d | 24 +++--------------------- 2 files changed, 7 insertions(+), 22 deletions(-) diff --git a/TODO b/TODO index f98488fe..ae003f03 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,9 @@ +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 diff --git a/debian/collectd.init.d b/debian/collectd.init.d index 20064715..13118fab 100755 --- 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="" +CONFIG=/etc/collectd.conf # Gracefully exit if the package has been removed. test -x $DAEMON || exit 0 @@ -22,32 +23,13 @@ then . /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 } -- 2.30.2