Home > Archive > Slony1 PostgreSQL Replication > July 2005 > Slon_watchdog.pl and restart_node









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Slon_watchdog.pl and restart_node
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);
Christopher Browne

2005-07-25, 8:29 pm

Ian Burrell wrote:

>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.
>
>
>

Committed to 1.1 STABLE as well as to HEAD.
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com