[collectd] [PATCH] Initialize libsensors with NULL as parameter

Michael Stapelberg michael+collectd at stapelberg.de
Tue Feb 9 17:30:16 CET 2010


Starting with libsensors 3.1, you can call sensors_init with NULL as parameter
and libsensors will use its own configuration path (so that the application
does not need to know it). Furthermore, this will also take into account files
in /etc/sensors.d/*, which is the preferred method to do any configuration.

The attached patch uses NULL for sensors_init. The downside of this is that
the mechanism to reload the configuration file cannot be used any longer.

I am not sure what other pieces of the code need to be touched to ensure that
libsensors 3.1 is present.

Best regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libsensors.patch
Type: application/octet-stream
Size: 2102 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20100209/37784b4c/attachment.obj 

More information about the collectd mailing list