diff options
author | hubertf <hubertf> | 2001-01-26 04:25:36 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2001-01-26 04:25:36 +0000 |
commit | 4a3d10801630880ea369b255fc6cb1b4db824d6d (patch) | |
tree | db38f0f89c8c8d400d565cd62270b644a682e7cd /net/bind9/files | |
parent | 35ec1bd702d2f0c6c0bb886442403fdabc4b90b3 (diff) | |
download | pkgsrc-4a3d10801630880ea369b255fc6cb1b4db824d6d.tar.gz |
Add a startup script
Diffstat (limited to 'net/bind9/files')
-rw-r--r-- | net/bind9/files/named.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net/bind9/files/named.sh b/net/bind9/files/named.sh new file mode 100644 index 00000000000..ed0fb29088b --- /dev/null +++ b/net/bind9/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" |