Bug 949521 - lm_sensors-sensord does not use some usefull configuration options in /etc/sysconfig/sensord
Summary: lm_sensors-sensord does not use some usefull configuration options in /etc/sy...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lm_sensors
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaromír Cápík
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1006981
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-08 11:22 UTC by mikey
Modified: 2016-02-01 01:58 UTC (History)
6 users (show)

Fixed In Version: lm_sensors-3.3.4-10.fc20
Clone Of:
Environment:
Last Closed: 2014-01-14 08:45:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Modified sensord.service file to include reference to RRD variables (275 bytes, application/octet-stream)
2013-04-08 11:22 UTC, mikey
no flags Details

Description mikey 2013-04-08 11:22:17 UTC
Created attachment 732653 [details]
Modified sensord.service file to include reference to RRD variables

Description of problem:

The sensord sensor logging daemon for lm_sensors does not use some of the configuration options available in its /etc/sysconfig/sensord file. There are 2 options that are commented out by default but are needed to control RRD logging for sensord (a very useful feature). 


Version-Release number of selected component (if applicable):

Installed Packages
Name        : lm_sensors-sensord
Arch        : x86_64
Version     : 3.3.2
Release     : 5.fc18
Size        : 39 k
Repo        : installed
From repo   : fedora
Summary     : Daemon that periodically logs sensor readings
URL         : http://www.lm-sensors.org/
Licence     : LGPLv2+
Description : Daemon that periodically logs sensor readings to syslog or a round-robin
            : database, and warns of sensor alarms.


How reproducible:


Steps to Reproduce:
1. Install lm_sensors-sensord
2. Uncomment the 2 lines in /etc/sysconfig/sensord
3. Restart sensord "sudo systemctl restart sensord.service"
4. Check the RRD db location for the creation of the file "ls /var/log/sensors.rrd"
  
Actual results:

No file is created, nor can it be as there is no mention of these variables in the /usr/lib/systemd/system/sensord.service file.

Expected results:

/var/log/sensors.rrd to be created.

Additional info:

I am attaching the sensord.service file I created to make it work (although I don't know if it will cause problems if no RRD variables are given, or what the best practice for this kind of situation is with systemd unit files.

Comment 1 Bruno Wolff III 2013-04-12 18:29:25 UTC
This file also has data needed for the modprobe command. If lm_sensors needs drivers loaded for devices to work on a system, not being able to read this file breaks things.

Comment 2 Bruno Wolff III 2013-04-12 18:30:27 UTC
Whoops, wrong file my case is actually needing /etc/sysconfig/lm_sensors.

Comment 3 Jaromír Cápík 2013-09-11 14:55:19 UTC
Hello Mikey.

It seems a wrapper script is needed for checking whether the config variables are defined. Let me do a deeper analysis.

I'll let you know about my findings.

Thank you.

Regards,
Jaromir.

Comment 4 Jaromír Cápík 2013-09-11 15:29:43 UTC
I'm going to submit a new feature request against systemd. It lacks a mechanism for conditional pairing of switches and values, when the values are defined in the environmental file.

Comment 5 Jaromír Cápík 2013-09-13 18:03:17 UTC
So ... the RFE was rejected yesterday (not a big surprise for me). That means a wrapper script is needed. Going to write one and rebuild.

Comment 6 Fedora End Of Life 2013-12-21 15:28:05 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Fedora Update System 2014-01-09 20:33:36 UTC
lm_sensors-3.3.4-9.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/lm_sensors-3.3.4-9.fc20

Comment 8 Fedora Update System 2014-01-10 07:48:05 UTC
Package lm_sensors-3.3.4-9.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing lm_sensors-3.3.4-9.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0530/lm_sensors-3.3.4-9.fc20
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2014-01-10 14:03:46 UTC
lm_sensors-3.3.4-10.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/lm_sensors-3.3.4-10.fc20

Comment 10 Fedora Update System 2014-01-14 08:45:41 UTC
lm_sensors-3.3.4-10.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.