aboutsummaryrefslogtreecommitdiffstats
path: root/main/djbdns/dnscache.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-08-09 13:25:04 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-08-09 13:25:04 +0000
commit6740d61d3640a7e253d6772364ca83dd82a78a57 (patch)
treec409c3939dc5ab42f1e7dcd902dc42101bf9ee50 /main/djbdns/dnscache.initd
parent40857ea123cfdfbe49d5555e1b617920f3fa08ca (diff)
downloadaports-6740d61d3640a7e253d6772364ca83dd82a78a57.tar.bz2
aports-6740d61d3640a7e253d6772364ca83dd82a78a57.tar.xz
main/djbdns: provide random seed to dnscache
fixes #120 Thanks to Nathan for solving this.
Diffstat (limited to 'main/djbdns/dnscache.initd')
-rwxr-xr-xmain/djbdns/dnscache.initd3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/djbdns/dnscache.initd b/main/djbdns/dnscache.initd
index 2b6f137793..486f37ef32 100755
--- a/main/djbdns/dnscache.initd
+++ b/main/djbdns/dnscache.initd
@@ -9,6 +9,7 @@ PIDFILE=/var/run/dnscache.pid
depend() {
need net
+ provide dns
}
#-----------------------------------------------------------------
@@ -28,7 +29,7 @@ start() {
--env "ROOT=$ROOT" --env "IP=$IP" --env "IPSEND=$IPSEND" \
--env "HIDETTL=$HIDETTL" --env "CACHESIZE=$CACHESIZE" \
--env "FORWARDONLY=$FORWARDONLY" --pidfile $PIDFILE \
- --background --make-pidfile --exec $DAEMON
+ --background --make-pidfile --exec $DAEMON -- < /dev/urandom
eend $?
}