diff options
author | Dave Page | 2008-12-02 17:15:24 +0000 |
---|---|---|
committer | Dave Page | 2008-12-02 17:15:24 +0000 |
commit | 489d1678c18455dfa38623c94bee4127cf077868 (patch) | |
tree | d3d4c4b268a3b506580d32ec06f4c8a9b8621588 | |
parent | 84fa6cdd2dca98be89433fe9537318fa995d63b9 (diff) |
Commit previously un-commited changes to the automirror code
git-svn-id: https://pgweb.postgresql.org/svn/trunk@2326 8f5c7a92-453e-0410-a47f-ad33c8a6b003
-rw-r--r-- | autodnscheck.pl | 2 | ||||
-rw-r--r-- | automirror.php | 2 | ||||
-rw-r--r-- | automirror.sh | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/autodnscheck.pl b/autodnscheck.pl index bd95473..cbecfe4 100644 --- a/autodnscheck.pl +++ b/autodnscheck.pl @@ -6,7 +6,7 @@ use Net::DNS; my $DEBUG=0; my $DOMAIN="mirrors.postgresql.org"; -my $MASTER="62.65.68.81"; +my $MASTER="nagios.pgadmin.org"; my $errors = ''; diff --git a/automirror.php b/automirror.php index dfc72a3..d9563c1 100644 --- a/automirror.php +++ b/automirror.php @@ -2,7 +2,7 @@ // 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'; diff --git a/automirror.sh b/automirror.sh index 7789366..e9097d6 100644 --- a/automirror.sh +++ b/automirror.sh @@ -2,11 +2,11 @@ # Run the automirror script with a timeout (in seconds) TIMEOUT=120 -MAILREPORT="pgsql-slavestothewww@postgresql.org mha@sollentuna.net dpage@vale-housing.co.uk" +MAILREPORT="Sysadmin Reports <sysadmin-reports@postgresql.org>" -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=$! @@ -17,5 +17,5 @@ if [ ! $? = 0 ]; then fi kill ${BG2} >/dev/null 2>&1 -/usr/local/bind/sbin/rndc reload mirrors.postgresql.org +/usr/sbin/rndc reload mirrors.postgresql.org |