[collectd] Exporting the collectd's loop variable for plugins
Luboš Staněk
lubek at users.sourceforge.net
Wed Nov 8 14:42:58 CET 2006
Hi Florian,
Florian Forster napsal(a):
> Hi Lubos,
>
> On Tue, Nov 07, 2006 at 09:30:26PM +0100, Lubo?? Stan??k wrote:
>> 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.
>
> okay, I'll merge the patches into the master tree later today.
>
>> 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? :)
>
It is possible to change the initscript to wait a second between stop &
start:
--- contrib/init.d-rh7.old 2006-11-04 13:52:31.000000000 +0100
+++ contrib/init.d-rh7 2006-11-08 14:34:59.000000000 +0100
@@ -42,6 +42,7 @@
;;
restart|reload)
stop
+ sleep 1
start
;;
condrestart)
But it will not prevent doing kill $pid && collectd.
> I have nothing say about Debian and have it installed on at least 4
> machines. Especially the parts where distributions differ from one
> another (init scripts, package management, configuration management,
> filesystem hierarchy/layout, ...) Debian convinces me..
>
> (And I'm the moderate one. Guess what Sebastian would have said.. ;)
>
It was a joke.
That is why there are plenty of distributions. Everyone can select the
one that suites him best.
Besides I can hook the colletd as well.
Best regards,
Lubos
More information about the collectd
mailing list