From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] sensors-detect: unecessary suggested change to
Date: Wed, 19 Dec 2007 11:00:35 +0000 [thread overview]
Message-ID: <20071219120035.4981ad83@hyperion.delvare> (raw)
In-Reply-To: <20071217000316.GA27938@intrepid.com>
Hi Aurelien,
On Tue, 18 Dec 2007 19:16:30 +0100, Aurelien Jarno wrote:
> Jean Delvare a écrit :
> > On Tue, 18 Dec 2007 08:27:45 -0800, Gary Funck wrote:
> >> 3. The advice to start the service is good. Should the user
> >> also be advised to enable it via chkconfig, or is it enabled
> >> by default in most distro packages?
> >
> > In openSuse, sensors-detect is modified to call /sbin/inserv at this
> > point. I don't know about the other distributions. Admittedly it would
> > be nice to automate this step as well, however I don't know for sure
> > how this can be done in a portable way. We could do:
> >
> > system("/sbin/insserv", "/etc/init.d/lm_sensors")
> > if -x "/sbin/insserv" && -f "/etc/init.d/lm_sensors";
> >
> > That would work for openSuse and presumably Fedora, but I don't know
> > about Debian. Aurelien?
>
> On Debian, the end of sensors-detect is heavily modified, as the sensors
> modules are written to /etc/modules instead, and the format is a bit
> different. All modules from this file are loaded automatically at boot time.
>
> Then the /etc/init.d/lm-sensors script corresponds to a simple script
> that read the "sensors -s" twice, so that the alarms are set and
> possibly cleared.
You should not assume that "sensors -s" will clear the alarms. It does
for now because libsysfs reads all the attributes even when not told to,
however I fixed that in SVN last week, so starting with lm-sensors
3.0.1 (or whatever we number the next version) it won't be the case
anymore. You should run "sensors", not "sensors -s", if you want to
clear the alarms. You may need to wait for 2 seconds before you do if
the first "sensors -s" read the alarm registers (which is the case in
3.0.0, but should no longer be in 3.0.1.)
> For the sensord daemon we have a separate package, and the daemon is
> enabled by default (since the package is not installed by default). This
> can be changed via /etc/default/sensord (usual path on Debian).
>
> So in short I am not opposed to changed on this part, as anyway it is
> already different :-)
OK, fair enough. I think I'll add the optional insserv call, I guess it
cannot hurt as it is protected with the relevant conditionals. But I
want to keep sensors-detect somewhat distribution-neutral. So, if you
feel that part of the changes done to this script in Debian are general
enough, I would be happy to merge them upstream, with whatever
conditionals are needed so that it won't cause trouble on other
distributions. But I'm not forcing you either, if you want to keep the
changes in Debian to have better control over them, that's equally fine
with me. It's really up to you.
Same apply to other popular distros, BTW: changes that are general
enough will be considered for upstream inclusion.
Thanks,
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
prev parent reply other threads:[~2007-12-19 11:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-17 0:03 [lm-sensors] sensors-detect: unecessary suggested change to Gary Funck
2007-12-18 13:13 ` Jean Delvare
2007-12-18 16:27 ` Gary Funck
2007-12-18 17:36 ` Jean Delvare
2007-12-18 18:16 ` Aurelien Jarno
2007-12-19 11:00 ` Jean Delvare [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071219120035.4981ad83@hyperion.delvare \
--to=khali@linux-fr.org \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.