lm_sensors/sensord-service-wrapper
Jaromir Capik 3de330643f - Enhancing the sensord service wrapper (#863986)
- UsrMove and libexec path tunings
2014-01-10 14:46:42 +01:00

14 lines
428 B
Bash
Executable File

#!/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"`
[ "$RRD_NO_AVG" = "1" ] && ARGS=`echo "$ARGS -T"`
[ "$LOAD_AVG" = "1" ] && ARGS=`echo "$ARGS -a"`
/usr/sbin/sensord -f daemon $ARGS