Home > Archive > Slony1 PostgreSQL Replication > July 2005 > Bug in slon_watchdog.pl calling slonik_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 Bug in slon_watchdog.pl calling slonik_restart_node
Ian Burrell

2005-07-20, 8:25 pm

slon_watchdog.pl is failing to do the slonik restart nodes because it
has the wrong script name. restart_node was renamed to
slonik_restart_node but slon_watchdog.pl wasn't modified. 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 20 Jul 2005 19:25:14 -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);
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