mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-16 22:58:11 +00:00
dnrd: Remove stale files of recipe removed 2 years ago
Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
d8ae94340c
commit
9665016569
@ -1,21 +0,0 @@
|
|||||||
# options to dnrd
|
|
||||||
|
|
||||||
# example: two default dns servers and dns servers for exampledomain.com. The
|
|
||||||
# latter are load balanced (-b)
|
|
||||||
#
|
|
||||||
#
|
|
||||||
|
|
||||||
# DNRD_OPTS="
|
|
||||||
# -s XXX.XXX.XX.XXX
|
|
||||||
# -s XXX.XXX.XX.XXX
|
|
||||||
# -b
|
|
||||||
# -s XXX.XXX.XX.XXX:exampledomain.com
|
|
||||||
# -s XXX.XXX.XX.XXX:exampledomain.com"
|
|
||||||
|
|
||||||
# example: dnrd user
|
|
||||||
#
|
|
||||||
|
|
||||||
# DNRD_USER="user"
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,94 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# Startup script for dnrd
|
|
||||||
#
|
|
||||||
# Copyright 2008, Rakesh Pandit <rakesh.pandit@gmail.com>
|
|
||||||
#
|
|
||||||
# This source is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2, or (at your option)
|
|
||||||
# any later version.
|
|
||||||
|
|
||||||
# This source is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
# chkconfig: - 85 15
|
|
||||||
# description: dnrd is a proxying nameserver. It forwards DNS queries to the
|
|
||||||
# appropriate nameserver, but can also act as the primary nameserver for
|
|
||||||
# a subnet behind a firewall. It also has features such as caching DNS
|
|
||||||
# requests, support for DNS servers, cache poisoning prevention, TCP
|
|
||||||
# support, etc..
|
|
||||||
|
|
||||||
# processname: dnrd
|
|
||||||
# pidfile: /var/run/dnrd.pid
|
|
||||||
# config: /etc/dnrd/dnrd.conf
|
|
||||||
|
|
||||||
# Provides: dnrd
|
|
||||||
# Required-Start:
|
|
||||||
# Should-Start:
|
|
||||||
# Required-Stop:
|
|
||||||
# Default-Stop: 0 1 2 6
|
|
||||||
# Short-Description: Start dnrd daemon
|
|
||||||
# Description: Domain Name Relay Daemon
|
|
||||||
# END INIT INFO
|
|
||||||
|
|
||||||
exe=/usr/sbin/dnrd
|
|
||||||
pfile=/etc/passwd
|
|
||||||
|
|
||||||
# Source function library.
|
|
||||||
. /etc/init.d/functions
|
|
||||||
|
|
||||||
# Source conf file
|
|
||||||
. /etc/dnrd/dnrd.conf
|
|
||||||
|
|
||||||
[ -x $exe ] || exit 1
|
|
||||||
[ -r "/etc/dnrd/dnrd.conf" ] || exit 1
|
|
||||||
if [ $DNRD_USER ]
|
|
||||||
then
|
|
||||||
grep "^${LOGIN}:" $pfile >/dev/null 2>&1
|
|
||||||
if [ $? -eq 0 ];then
|
|
||||||
echo "$DNRD_USER specified in /etc/dnrd/dnrd.conf does not exist!"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "DNRD_USER not set at /etc/dnrd/dnrd.conf!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
start)
|
|
||||||
echo -n "Starting dnrd: "
|
|
||||||
daemon dnrd $DNRD_OPTS -u $DNRD_USER
|
|
||||||
echo
|
|
||||||
touch /var/lock/subsys/dnrd
|
|
||||||
;;
|
|
||||||
stop)
|
|
||||||
echo -n "Shutting down dnrd: "
|
|
||||||
killproc dnrd
|
|
||||||
echo
|
|
||||||
rm -f /var/lock/subsys/dnrd
|
|
||||||
rm -f /var/run/dnrd.pid
|
|
||||||
;;
|
|
||||||
status)
|
|
||||||
status dnrd
|
|
||||||
;;
|
|
||||||
restart)
|
|
||||||
$0 stop
|
|
||||||
$0 start
|
|
||||||
;;
|
|
||||||
reload)
|
|
||||||
echo -n "Reloading dnrd: "
|
|
||||||
killproc dnrd -HUP
|
|
||||||
echo
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Usage: $0 {start|stop|restart|reload|status}"
|
|
||||||
exit 1
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Domain Name Relay Daemon
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=forking
|
|
||||||
PIDFile=/var/run/dnrd.pid
|
|
||||||
EnvironmentFile=/etc/dnrd/dnrd.conf
|
|
||||||
ExecStart=/usr/sbin/dnrd $DNRD_OPTS -u $DNRD_USER
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Loading…
x
Reference in New Issue
Block a user