aboutsummaryrefslogtreecommitdiffstats
path: root/dns/dnrd/files/dnrd.sh.in
blob: 13eef265db658fd3b8b15a0df7ccd4e39502b660 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /bin/sh
#
#
# PROVIDE: dnrd
# REQUIRE: DAEMON NETWORKING SERVERS
#
# Add the following line to /etc/rc.conf to enable dnrd:
#
# dnrd_enable="YES"
#

# override these variables in /etc/rc.conf
dnrd_enable=${dnrd_enable-"NO"}

. %%RC_SUBR%%

name=dnrd
rcvar=$(set_rcvar)

command=%%PREFIX%%/sbin/${name}
pidfile=/var/run/${name}.pid

load_rc_config ${name}

case $1 in
    "stop")
        echo "Stopping dnrd."
        ${command} -k
        ;;
    *)
        run_rc_command "$1"
        ;;
esac