[collectd] Exporting the collectd's loop variable for plugins

Luboš Staněk lubek at users.sourceforge.net
Tue Nov 7 21:30:26 CET 2006


Hi Florian,

Florian Forster napsal(a):
> Hi Lubos,
> 
> On Tue, Nov 07, 2006 at 07:32:31PM +0100, Lubo?? Stan??k wrote:
>> the quick exit has one negative feature.
> 
> if I understand you correctly, the problem occurs when re-starting
> collectd. Since collectd starts and stopps too quick, RRDTool complains.
> 

Yes.
It stops and immediately starts, all in the same second.
I am running it with the patch I sent to discussion without any trouble.
I tried the stop-start in a bash script with variable sleep/usleep for
20 times. No trouble at all.


> I don't think this is a bug in the init-script, but the init-script. As
> far as I know Debian's init-script waits for (at least) a second, before
> starting the daemon again.
> 

initscripts on Fedora Core/RedHat do not wait for anything.

Hey, I have replaced sysklogd with syslog-ng, updated ntp to make
collectd and me happy. Do you mean that I should move to Debian? :)


> Meanwhile, I've made another small change, to quit faster if the daemon
> is currently trying to sleep.
> 

It is definitely better.


Best regards,
Lubos



More information about the collectd mailing list