|
View unanswered posts | View active topics
|
Page 1 of 1
|
[ 2 posts ] |
|
| Author |
Message |
|
Euripides
Salamander
Joined: Wed Mar 10, 2010 8:58 am Posts: 3
|
 lm_sensors doesn't start
I am operating openSUSE 11.2 x86_64 KDE4.3 after installing sensors then adding to my optional kernel parameters and running as superuser. /etc/sysconfig/lm_sensors: /etc/rc.d/lm_sensors:  |  |  |  | Code: #!/bin/sh # ### BEGIN INIT INFO # Provides: lm_sensors # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 2 3 5 # Default-Stop: # Short-Description: Load and configure hardware monitoring drivers # Description: sensors is used for monitoring motherboard sensor values. # Config file is /etc/sysconfig/lm_sensors ### END INIT INFO # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301 USA.
# See also the lm_sensors homepage at: # http://www.lm-sensors.org
# It uses a config file /etc/sysconfig/lm_sensors that contains the modules # to be loaded/unloaded. That file is sourced into this one.
# The format of that file a shell script that simply defines the modules # in order as normal shell variables with the special names: # MODULE_1, MODULE_2, MODULE_3, etc.
CONFIG=/etc/sysconfig/lm_sensors LOCK=/var/lock/subsys/lm_sensors PSENSORS=/usr/bin/sensors FANCONFIG=/etc/fancontrol PFAN=/usr/sbin/fancontrol
# Source function library. . /etc/rc.status
start() { echo -n "Starting up sensors" unset ${!MODULE_*} test -r "$CONFIG" && . "$CONFIG"
for i in ${!MODULE_*} ; do eval module=\$$i /sbin/modprobe $module &>/dev/null rc_status done rc_status
/usr/bin/sensors -s &> /dev/null rc_status
# Start fan control, if configured if test -s "$FANCONFIG" -a -x "$PFAN" ; then echo -n ", starting fan control: " /sbin/startproc -q "$PFAN" rc_status else echo -n ": " fi
rc_status -v && touch $LOCK }
stop() { echo -n "Shutting down sensors" unset ${!MODULE_*} test -r "$CONFIG" && . "$CONFIG"
# Stop fan control, if it was started if test -s /var/run/fancontrol.pid ; then echo -n ", stopping fan control: " /sbin/killproc -TERM "$PFAN" rc_status else echo -n ": " fi
for i in ${!MODULE_*} ; do eval module=\$$i /sbin/modprobe -r $module &>/dev/null rc_status done
rc_status -v && rm -f $LOCK }
dostatus() { $PSENSORS rc_status }
restart() { stop start rc_status }
condrestart() { [ -e $LOCK ] && restart || : }
# Reset status of this service rc_reset
# See how we were called. case "$1" in start) start ;; stop) stop ;; status) dostatus ;; restart|reload) restart ;; try-restart) condrestart ;; *) echo "Usage: lm_sensors {start|stop|status|restart|reload|try-restart}" exit 1 esac
rc_exit
|  |  |  |  |
System Services shows lm_sensors enabled at runlevels 2,3 and 5. Sensors can be started manually with , but lm_sensors doesn't start at boot.
_________________ Question everything. Learn something. Answer nothing.
|
| Wed Mar 10, 2010 9:47 am |
|
 |
|
mushroom
Site Admin
Joined: Thu Apr 20, 2006 1:43 pm Posts: 2023 Location: Queen Charlotte B. C. Canada
|
 Re: lm_sensors doesn't start
Could it be that you are trying to start them to soon? I would try not enabling it in runlevel 2, some of the modules lm_sensors needs may not be up an running by the time the script runs.
_________________ SuSE 8.0, 8.2, 9.0, 9.1, 9.2, 9.3, 10.0, 10.1, 10.2-32bit, 10.2-64bit, 10.3-32bit, 10.3-64bit, 11.0 32bit, 11.1 64bit Live CD's Puppy 4.3.1, Knoppix 5.3.1 DVD, Netbook: Zenwalk 6.2 Preferred desktop: KDE
|
| Wed Mar 10, 2010 11:59 am |
|
|
|
Page 1 of 1
|
[ 2 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|