summaryrefslogtreecommitdiff
path: root/net/bind9-current/files/named.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/bind9-current/files/named.sh')
-rw-r--r--net/bind9-current/files/named.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/net/bind9-current/files/named.sh b/net/bind9-current/files/named.sh
new file mode 100644
index 00000000000..ed0fb29088b
--- /dev/null
+++ b/net/bind9-current/files/named.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# PROVIDE: named
+# REQUIRE: SERVERS
+
+. /etc/rc.subr
+
+name="named"
+rcvar=${name}9
+command="@PREFIX@/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+
+extra_commands="reload"
+
+load_rc_config ${name}9 # check /etc/rc.conf.d/named9
+
+named_precmd()
+{
+ # Die if $named is also set (i.e. the system's named is not disabled
+ if checkyesno named ; then
+ warn \
+ "disable 'named' when setting 'named9'!"
+ return 1
+ fi
+}
+start_precmd="named_precmd"
+
+run_rc_command "$1"