Can scan_for_sensors() not simply check if collectd is already running and if so, simply restart it?
Im not sure. scan_for_sensors generate a list of kernel modules that must loaded before collectd. I have not tested restarting collectd after it has finished.
Arne