Skip to contentSkip to conversation

fancontrol init script for ubuntu +

lm-sensors Charles 3 participants 4 messages Jan 21, 2009 – Jan 25, 2009

lore
Share & tools
lore

Charles

author
#0 lore raw

Hello lmsensors mailing list :-)

Here's a standards-compliant init script for fancontrol, developed and tested using fancontrol 0.66 on ubuntu 8.04.1. It may work on other ubuntus, debian and other debian-based systems using lsb-base (>= 3.0-6).

Part of the standards-compliance is that the script issues no messages at boot or shutdown if /etc/default/rcS has VERBOSE=no (the default value).

Best

Charles

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw
Quoted 8 lines · Charles

Hello lmsensors mailing list :-)

Here's a standards-compliant init script for fancontrol, developed and tested using fancontrol 0.66 on ubuntu 8.04.1. It may work on other ubuntus, debian and other debian-based systems using lsb-base (>= 3.0-6).

Part of the standards-compliance is that the script issues no messages at boot or shutdown if /etc/default/rcS has VERBOSE=no (the default value).

Does anyone have a similar init script for fancontrol on redhat/centos/fedora?

Thanks,

Mark Nienberg

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Charles
Quoted 3 lines · Charles

Here's a standards-compliant init script for fancontrol, developed and tested using fancontrol 0.66 on ubuntu 8.04.1. It may work on other ubuntus, debian and other debian-based systems using lsb-base (>= 3.0-6).

Are you joking? Which "standard"? You say standards-compliant, then say it only works on Debian?

Quoted 2 lines

Part of the standards-compliance is that the script issues no messages at boot or shutdown if /etc/default/rcS has VERBOSE=no (the default value).

Where is this requirement mentioned? I don't see it in
http://refspecs.linux-foundation.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic/tocsysinit.html
byt may have missed something.

Greets,

Volker

Signature · 7 lines
Volker Kuhlmann			is list0570 with the domain in header
http://volker.dnsalias.net/	Please do not CC list postings to me.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#3 lore raw
In reply to Charles
Quoted 1 line · Mark Nienberg

Does anyone have a similar init script for fancontrol on redhat/centos/fedora?

Yes there is. /etc/init.d/lm_sensors on openSUSE loads the necessary modules, and also starts the fancontrol script if /etc/fancontrol (the fancontrol config file) exists. The script may not run directly on redhat, but if you transplant the few lines of code into /etc/init.d/skeleton.compat it will run on any chkconfig system.

The files are in these packages:
/etc/init.d/lm_sensors sensors
/etc/init.d/skeleton.compat aaa_base
Available from download.opensuse.org.

You can replace /usr/sbin/fancontrol with any script of your choice (there are several on offer).

HTH,

Volker

Signature · 7 lines
Volker Kuhlmann			is list0570 with the domain in header
http://volker.dnsalias.net/	Please do not CC list postings to me.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors