aboutsummaryrefslogtreecommitdiffstats
path: root/dns/nsd2/files
diff options
context:
space:
mode:
authoralepulver <alepulver@FreeBSD.org>2006-11-01 01:27:32 +0800
committeralepulver <alepulver@FreeBSD.org>2006-11-01 01:27:32 +0800
commit81cc981e661236efe41f16faebf68adaead56dfb (patch)
treed3a90c9bc609590e35c1c7af3c11509cf41bbf4b /dns/nsd2/files
parentf0d40f968d651880d4ca32447998e7d50f812926 (diff)
downloadfreebsd-ports-gnome-81cc981e661236efe41f16faebf68adaead56dfb.tar.gz
freebsd-ports-gnome-81cc981e661236efe41f16faebf68adaead56dfb.tar.zst
freebsd-ports-gnome-81cc981e661236efe41f16faebf68adaead56dfb.zip
NSD (Name Server Daemon) is a complete implementation of an
authoritative DNS nameserver. WWW: http://www.nlnetlabs.nl/nsd PR: ports/104469 Submitted by: oli at isnic.is
Diffstat (limited to 'dns/nsd2/files')
-rw-r--r--dns/nsd2/files/nsd.sh.in31
1 files changed, 31 insertions, 0 deletions
diff --git a/dns/nsd2/files/nsd.sh.in b/dns/nsd2/files/nsd.sh.in
new file mode 100644
index 000000000000..da99a593d964
--- /dev/null
+++ b/dns/nsd2/files/nsd.sh.in
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: nsd
+# REQUIRE: DAEMON
+#
+# Add the following line to /etc/rc.conf to enable nsd:
+#
+# nsd_enable="YES"
+#
+
+. %%RC_SUBR%%
+
+name=nsd
+rcvar=`set_rcvar`
+
+prefix=%%PREFIX%%
+
+required_files=%%NSDDIR%%/nsd.zones
+
+command=/usr/local/sbin/${name}
+pidfile=/var/run/${name}.pid
+
+# set defaults
+
+nsd_enable=${nsd_enable:-"NO"}
+nsd_flags=${nsd_flags:-""}
+
+load_rc_config ${name}
+run_rc_command "$1"