initial commit of file from CVS for e-smith-dnscache on Wed 12 Jul 08:51:05 BST 2023
This commit is contained in:
12
root/var/service/dnscache.forwarder/run
Normal file
12
root/var/service/dnscache.forwarder/run
Normal file
@@ -0,0 +1,12 @@
|
||||
#! /bin/sh
|
||||
exec 2>&1
|
||||
. ./config
|
||||
|
||||
# Ensure that dnscache has source of randomness to initialise its source
|
||||
# port RNG
|
||||
test -f ./seed || /bin/dd if=/dev/urandom bs=128 count=1 of=seed
|
||||
exec<./seed
|
||||
|
||||
# http://marc.theaimsgroup.com/?l=djbdns&m=104812086607532&w=2
|
||||
trap "" SIGPIPE
|
||||
exec envuidgid dnscache softlimit -o250 -d "$DATALIMIT" /usr/local/bin/dnscache
|
Reference in New Issue
Block a user