2014-01-09 20:13:21 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. /etc/sysconfig/sensord
|
|
|
|
|
|
|
|
ARGS=""
|
|
|
|
[ "$INTERVAL" = "" ] || ARGS=`echo "$ARGS -i $INTERVAL"`
|
|
|
|
[ "$LOG_INTERVAL" = "" ] || ARGS=`echo "$ARGS -l $LOG_INTERVAL"`
|
|
|
|
[ "$RRD_INTERVAL" = "" ] || ARGS=`echo "$ARGS -t $RRD_INTERVAL"`
|
|
|
|
[ "$RRD_LOGFILE" = "" ] || ARGS=`echo "$ARGS -r $RRD_LOGFILE"`
|
2014-01-10 13:46:42 +00:00
|
|
|
[ "$RRD_NO_AVG" = "1" ] && ARGS=`echo "$ARGS -T"`
|
|
|
|
[ "$LOAD_AVG" = "1" ] && ARGS=`echo "$ARGS -a"`
|
2014-01-09 20:13:21 +00:00
|
|
|
|
|
|
|
/usr/sbin/sensord -f daemon $ARGS
|