diff options
Diffstat (limited to 'dns/dnrd/files/dnrd.sh')
-rw-r--r-- | dns/dnrd/files/dnrd.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dns/dnrd/files/dnrd.sh b/dns/dnrd/files/dnrd.sh new file mode 100644 index 000000000000..6abd3601a059 --- /dev/null +++ b/dns/dnrd/files/dnrd.sh @@ -0,0 +1,35 @@ +#! /bin/sh +# +# +# PROVIDE: dnrd +# REQUIRE: DAEMON NETWORKING SERVERS +# KEYWORD: FreeBSD +# +# 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"} + +. /etc/rc.subr + +name=dnrd +rcvar=$(set_rcvar) + +command=/usr/local/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 + |