| Ian Burrell 2005-07-25, 8:29 pm |
| I sent a patch earlier which fixes slon_watchdog.pl. I would like to
see it comitted. Slon_watchdog.pl is supposed to call
slonik_restart_node,
but is currently calling restart_node. I am
guessing it didn't get changed when the programs were renamed.
I have appended the patch.
- Ian
diff -u -b -B -r1.11 slon_watchdog.pl
--- tools/altperl/slon_watchdog.pl 16 Mar 2005 18:57:21 -0000 1.1=
1
+++ tools/altperl/slon_watchdog.pl 25 Jul 2005 21:22:21 -0000
@@ -48,7 +48,7 @@
print SLONLOG "WATCHDOG: You ought to check the postmaster and
slon for evidence of a crash!\n";
print SLONLOG "WATCHDOG: I'm going to restart slon for $node...\n";
# First, restart the node using slonik
- system "@@TOOLSBIN@@/restart_node $node | @@PGBINDIR@@/slonik";
+ system "@@TOOLSBIN@@/slonik_restart_node $node | @@PGBINDIR@@/slonik";
# Next, restart the slon process to service the node
start_slon($nodenum)
;
$pid =3D get_pid($node);
|