Red Hat Bugzilla – Bug 834215
service lm_sensor cannot be started, modprobe: Error: missing parameters. See -h
Last modified: 2016-01-31 20:56:47 EST
Description of problem:
service lm_sensor cannot be started on the latest rhel7.
are there wrong parameters?
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. service lm_sensors start
# systemctl start lm_sensors.service
Job failed. See system journal and 'systemctl status' for details.
# systemctl status lm_sensors.service
lm_sensors.service - Initialize hardware monitoring sensors
Loaded: loaded (/usr/lib/systemd/system/lm_sensors.service; disabled)
Active: failed (Result: exit-code) since Thu, 21 Jun 2012 17:47:35 +0900; 4s ago
Process: 3807 ExecStart=/usr/bin/sensors -s (code=exited, status=1/FAILURE)
Process: 3805 ExecStart=/sbin/modprobe -qab $BUS_MODULES $HWMON_MODULES (code=exited, status=1/FAILURE)
Jun 21 17:47:35 MY.X.Y.Z.redhat.com modprobe: Error: missing parameters. See -h.
service is started
It seems you haven't run the sensors-detect script in order to generate the variables. This also happens when no sensors are detected by the script.
It's questionable if this is a correct behaviour or not. It has no sense to start the service without configuring it first. And it has no sense to run the service when there are no sensors detected.
Please, check that and let me know.
As Petr stated, he hadn't configured the sensors when he tried to start the service. But we agreed that the error message is pretty confusing. The service file needs to be redesigned in order to tell users the real reason why it fails and what to do in order to prevent that from happening.
Please, test, whether the latest build behaves like expected.
Thanks in advance.
Thanks ... closing.