#!/bin/sh

if [ ! -s "/etc/djbdns/dnscache/seed" ]
then
	head -c 128 /dev/urandom > /etc/djbdns/dnscache/seed
fi

exec 2>&1
exec </etc/djbdns/dnscache/seed
exec envdir /etc/djbdns/dnscache/env sh -c '
  exec envuidgid djbdns softlimit -o250 -d "$DATALIMIT" /usr/bin/dnscache
'
