]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
FreeBSD rc.d script for unbound.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 15 Feb 2008 13:43:30 +0000 (13:43 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 15 Feb 2008 13:43:30 +0000 (13:43 +0000)
git-svn-id: file:///svn/unbound/trunk@957 be551aaa-1e26-0410-a405-d3ace91eadb9

contrib/README [new file with mode: 0644]
contrib/rc_d_unbound [new file with mode: 0755]
doc/Changelog

diff --git a/contrib/README b/contrib/README
new file mode 100644 (file)
index 0000000..3fecea1
--- /dev/null
@@ -0,0 +1,4 @@
+These files are contributed to unbound, and are not part of the official
+distribution but may be helpful.
+
+* rc_d_unbound: FreeBSD compatible /etc/rc.d script.
diff --git a/contrib/rc_d_unbound b/contrib/rc_d_unbound
new file mode 100755 (executable)
index 0000000..77b85ef
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# unbound freebsd startup rc.d script, modified from the named script.
+# uses the default unbound installation path and pidfile location.
+# copy this to /etc/rc.d/unbound
+# and put unbound_enable="YES" into rc.conf
+#
+
+# PROVIDE: unbound
+# REQUIRE: SERVERS cleanvar
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="unbound"
+rcvar=`set_rcvar`
+
+command="/usr/local/bin/unbound"
+pidfile="/etc/unbound/unbound.pid"
+extra_commands="reload"
+
+load_rc_config $name
+run_rc_command "$1"
index 1410b22e613ec7f52e05106ed5f71b19dd46205d..5bf00a14cea15af1a479529b8d1fccbee77f4c92 100644 (file)
@@ -1,3 +1,6 @@
+15 February 2008: Wouter
+       - added FreeBSD rc.d script to contrib.
+
 14 February 2008: Wouter
        - start without a config file (will complain, but start with
          defaults).