1 Dec 2007 12:40
Re: slave smokeping spawn problem
Tobias Oetiker <tobi <at> oetiker.ch>
2007-12-01 11:40:48 GMT
2007-12-01 11:40:48 GMT
Hi Russell,
can you try this patch:
Index: lib/Smokeping.pm
===================================================================
--- lib/Smokeping.pm (revision 891)
+++ lib/Smokeping.pm (working copy)
<at> <at> -3755,7 +3755,7 <at> <at>
shared_secret => $secret,
slave_name => $opt{'slave-name'} || hostname(),
};
- # this should get us a config set from the server
+ # this should get us an initial config set from the server
my $new_conf = Smokeping::Slave::submit_results($slave_cfg,$cfg);
if ($new_conf){
$cfg=$new_conf;
<at> <at> -3844,7 +3844,7 <at> <at>
$gothup = 1;
};
while (1) { # just wait for the signals
- sleep;
+ sleep; #sleep until we get a signal
next unless $gothup;
$reloading = 1;
$gothup = 0;
<at> <at> -3963,13 +3963,8 <at> <at>
my %sortercache;
if ($opt{'master-url'}){
my $new_conf = Smokeping::Slave::submit_results $slave_cfg,$cfg,$myprobe,$probes;
(Continue reading)
RSS Feed