Blame prog/init/README

Packit 53d5b6
This directory contains files useful for initialization
Packit 53d5b6
scripts, especially for RedHat.
Packit 53d5b6
Packit 53d5b6
There are two choices, lm_sensors.init and sensord.init.
Packit 53d5b6
Use one or the other but not both!
Packit 53d5b6
Packit 53d5b6
----------------
Packit 53d5b6
Packit 53d5b6
The script lm_sensors.init is a nice startup/shutdown script.
Packit 53d5b6
On RH and other RH-based systems (MDK, notably) use this sort of startup
Packit 53d5b6
mechanism (i.e. SVR4-based), as opposed to the everything-in-one-script
Packit 53d5b6
(/etc/rc or /etc/rc.local) like the BSD-based systems do.
Packit 53d5b6
The lm_sensors.init file should be copied to /etc/rc.d/init.d/lm_sensors.
Packit 53d5b6
For more information see the top of the file.
Packit 53d5b6
It requires the /etc/sysconfig/lm_sensors file, which identifies
Packit 53d5b6
the correct modules.
Packit 53d5b6
Packit 53d5b6
The /etc/sysconfig/lm_sensors file is generated by running sensors-detect.
Packit 53d5b6
Once the script is done detecting the hardware monitoring devices, it will
Packit 53d5b6
list all the required modules in that file, so that they can be loaded
Packit 53d5b6
automatically at boot time.
Packit 53d5b6
Packit 53d5b6
----------------
Packit 53d5b6
Packit 53d5b6
The script sensord.init also loads the modules, and then
Packit 53d5b6
starts the sensord daemon. See the manual page sensord(8) for
Packit 53d5b6
more information on the daemon.
Packit 53d5b6
Packit 53d5b6
The sensord.init file should be copied to /etc/rc.d/init.d/sensord.
Packit 53d5b6
For more information see the top of the file.
Packit 53d5b6
Packit 53d5b6
To configure this service one should put appropriate "alias i2c-bus-0 xxx"
Packit 53d5b6
and "alias i2c-sensors-chip-0 xxx" in /etc/modules.conf.