git-svn-id: https://pgweb.postgresql.org/svn/trunk@2326
8f5c7a92-453e-0410-a47f-
ad33c8a6b003
my $DEBUG=0;
my $DOMAIN="mirrors.postgresql.org";
-my $MASTER="62.65.68.81";
+my $MASTER="nagios.pgadmin.org";
my $errors = '';
// Maximum age of a mirror in seconds
$MAX_TIME_DIFF = 60*125; // 120 minutes + a little margin
// Path for zone file
- $ZONE_PATH = "/usr/local/bind/var/";
+ $ZONE_PATH = "/usr/local/automirror/zone/";
// IP of the master machine that keeps the main timestamp
$MASTERIP = '217.196.146.204';
# Run the automirror script with a timeout (in seconds)
TIMEOUT=120
-cd /root/pgmirror
+cd /usr/local/automirror/automirror
-/usr/local/bin/php automirror.php "$MAILREPORT" > mirrors.log 2>&1 &
+/usr/bin/php automirror.php "$MAILREPORT" > mirrors.log 2>&1 &
export BG=$!
(sleep $TIMEOUT >/dev/null 2>&1 ; kill ${BG} > /dev/null 2>&1) &
export BG2=$!
fi
kill ${BG2} >/dev/null 2>&1
-/usr/local/bind/sbin/rndc reload mirrors.postgresql.org
+/usr/sbin/rndc reload mirrors.postgresql.org