Hi All,
I guess you forgot one entry in the check config part of ldirectord.
If I put a checkinterval= 5 , I've got a mistake.
I provide a small patch which seems to work for me.
Hope this could be useful for somebody
Best regards and many thanks for that nice product.
+-----------------------------------------------------+
/ |\ _,,,---,,_ /|
/ /,`.-'`' -. ;-;;,_ / |
/ |,4- ) )-,_. ,\ ( `'-' / |
/ '---''(_/--' `-'\_) / |
+-----------------------------------------------------+ |
| Dulaunoy Fabrice | |
| | |
| e-mail : [EMAIL PROTECTED] | |
| : [EMAIL PROTECTED] | |
| | /
| PGP fingerprint : | /
| 9DD6 37BA D868 8F26 5283 CFA9 E9B3 49D8 7AC1 7E57 | /
| Unix *is* userfriendly. | /
| It's just selective which users it is friendly to. |/
+-----------------------------------------------------+--- ldirectord.orig 2007-10-15 10:58:56.000000000 +0200
+++ ldirectord 2007-10-15 10:58:38.000000000 +0200
@@ -615,7 +615,7 @@ use vars qw(
$CRLF
);
-$VERSION_STR = "Linux Director v1.186-ha-2.1.3";
+$VERSION_STR = "Linux Director v1.186a-ha-2.1.3";
$DAEMON_STATUS_STARTING = 0x1;
$DAEMON_STATUS_RUNNING = 0x2;
@@ -1143,6 +1143,9 @@ sub read_config
} elsif ($rcmd =~ /^checkcount\s*=\s*(.*)/){
$1 =~ /(\d+)/ && $1 or &config_error($line, "invalid check count");
$vsrv{checkcount} = $1;
+ } elsif ($rcmd =~ /^checkinterval\s*=\s*(.*)/){
+ $1 =~ /(\d+)/ && $1 or &config_error($line, "invalid checkinterval");
+ $vsrv{checkinterval} = $1
} elsif ($rcmd =~ /^checkport\s*=\s*(.*)/){
$1 =~ /(\d+)/ or &config_error($line, "invalid port");
( $1 > 0 && $1 < 65536 ) or &config_error($line, "checkport must be in range 1..65536");
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/