Initial commit. master
authorroot <root@deleuze.hcoop.net>
Fri, 27 Jun 2008 01:27:45 +0000 (21:27 -0400)
committerroot <root@deleuze.hcoop.net>
Fri, 27 Jun 2008 01:27:45 +0000 (21:27 -0400)
.gitignore [new file with mode: 0644]
env/CACHESIZE [new file with mode: 0644]
env/DATALIMIT [new file with mode: 0644]
env/IP [new file with mode: 0644]
env/IPSEND [new file with mode: 0644]
env/ROOT [new file with mode: 0644]
install [new file with mode: 0644]
log/run [new file with mode: 0755]
root/ip/127.0.0.2 [new file with mode: 0644]
root/servers/@ [new file with mode: 0644]
run [new file with mode: 0755]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..a02e226
--- /dev/null
@@ -0,0 +1,3 @@
+supervise
+/log/status
+/seed
diff --git a/env/CACHESIZE b/env/CACHESIZE
new file mode 100644 (file)
index 0000000..749fce6
--- /dev/null
@@ -0,0 +1 @@
+1000000
diff --git a/env/DATALIMIT b/env/DATALIMIT
new file mode 100644 (file)
index 0000000..d4f015c
--- /dev/null
@@ -0,0 +1 @@
+3000000
diff --git a/env/IP b/env/IP
new file mode 100644 (file)
index 0000000..588d1ba
--- /dev/null
+++ b/env/IP
@@ -0,0 +1 @@
+127.0.0.2
diff --git a/env/IPSEND b/env/IPSEND
new file mode 100644 (file)
index 0000000..d690dc0
--- /dev/null
@@ -0,0 +1 @@
+0.0.0.0
diff --git a/env/ROOT b/env/ROOT
new file mode 100644 (file)
index 0000000..07e4cb7
--- /dev/null
+++ b/env/ROOT
@@ -0,0 +1 @@
+/var/service/dnscache/root
diff --git a/install b/install
new file mode 100644 (file)
index 0000000..bebab17
--- /dev/null
+++ b/install
@@ -0,0 +1,6 @@
+#!/bin/bash
+cd /usr/bin
+ln -s chpst setuidgid
+ln -s chpst envdir
+ln -s chpst envuidgid
+ln -s chpst softlimit
diff --git a/log/run b/log/run
new file mode 100755 (executable)
index 0000000..5b06399
--- /dev/null
+++ b/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec setuidgid dnslog /usr/bin/svlogd -tt /var/log/dnscache
diff --git a/root/ip/127.0.0.2 b/root/ip/127.0.0.2
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/root/servers/@ b/root/servers/@
new file mode 100644 (file)
index 0000000..ca40b38
--- /dev/null
@@ -0,0 +1,13 @@
+198.41.0.4
+192.228.79.201
+192.33.4.12
+128.8.10.90
+192.203.230.10
+192.5.5.241
+192.112.36.4
+128.63.2.53
+192.36.148.17
+192.58.128.30
+193.0.14.129
+199.7.83.42
+202.12.27.33
diff --git a/run b/run
new file mode 100755 (executable)
index 0000000..e20cae7
--- /dev/null
+++ b/run
@@ -0,0 +1,6 @@
+#!/bin/sh
+exec 2>&1
+exec <seed
+exec envdir ./env sh -c '
+  exec envuidgid dnscache softlimit -o250 -d "$DATALIMIT" /usr/bin/dnscache
+'