[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debian JP master SVN www commits (rev.900)



=======================================================
Repository: /org/svn.debian.or.jp/repos
  Revision: 900
  Commiter: kmuto
      Date: 2009-04-23 13:46:50 +0900 (木, 23  4月 2009)
=======================================================
Log:

first geoip updater

=======================================================
Changed:

_U  cdn/trunk/example/dns_balance.sbin
A   cdn/trunk/example/geoip-update.monthly-cron
_U  cdn/trunk/example/init
A   cdn/trunk/example/logrotate.d


Property changes on: cdn/trunk/example/dns_balance.sbin
___________________________________________________________________
Name: svn:executable
   + *

Added: cdn/trunk/example/geoip-update.monthly-cron
===================================================================
--- cdn/trunk/example/geoip-update.monthly-cron	                        (rev 0)
+++ cdn/trunk/example/geoip-update.monthly-cron	2009-04-23 04:46:50 UTC (rev 900)
@@ -0,0 +1,8 @@
+#!/bin/sh
+cd /usr/share/GeoIP
+wget -O GeoIP.dat.gz -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
+if [ -f GeoIP.dat.gz -a -s GeoIP.dat.gz ]; then
+  zcat GeoIP.dat.gz > GeoIP.dat
+  /etc/init.d/dns_balance restart
+  rm GeoIP.dat.gz
+fi


Property changes on: cdn/trunk/example/geoip-update.monthly-cron
___________________________________________________________________
Name: svn:executable
   + *


Property changes on: cdn/trunk/example/init
___________________________________________________________________
Name: svn:executable
   + *

Added: cdn/trunk/example/logrotate.d
===================================================================
--- cdn/trunk/example/logrotate.d	                        (rev 0)
+++ cdn/trunk/example/logrotate.d	2009-04-23 04:46:50 UTC (rev 900)
@@ -0,0 +1,10 @@
+/var/log/dns_balance.log {
+	weekly
+	rotate 4
+	compress
+	missingok
+	create 644 nobody nogroup
+	postrotate
+		kill -HUP `cat /var/run/dns_balance.pid`
+	endscript
+}