3 # sensord: Hardware sensors monitoring daemon
5 # chkconfig: 2345 32 68
6 # description: Starts and stops hardware sensors monitoring daemon.
7 # author: Filip Kalinski <filon@pld.org.pl>
9 # Source function library.
10 . /etc/rc.d/init.d/functions
13 if [ -f /etc/sysconfig/sensord ]; then
14 . /etc/sysconfig/sensord
18 if [ ! -f /var/lock/subsys/lm_sensors ]; then
19 msg_not_running "lm_sensors"
23 # Check if the service is already running?
24 if [ -f /var/lock/subsys/sensord ]; then
25 msg_already_running "sensors daemon"
29 msg_starting "sensors daemon"
31 ${INTERVAL:+-i $INTERVAL} \
32 ${LOG_INTERVAL:+-l $LOG_INTERVAL} \
33 ${RRD_LOGFILE:+-r $RRD_LOGFILE} \
34 ${RRD_INTERVAL:+-t $RRD_INTERVAL} \
38 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sensord
42 if [ ! -f /var/lock/subsys/sensord ]; then
43 msg_not_running "sensors daemon"
46 msg_stopping "sensors daemon"
48 rm -f /var/lock/subsys/sensord
52 # See how we were called.
70 msg_usage "$0 {start|stop|restart|force-reload|status}"