From: Wouter Wijngaards Date: Fri, 15 Feb 2008 13:43:30 +0000 (+0000) Subject: FreeBSD rc.d script for unbound. X-Git-Tag: release-0.10~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9d58a02d7c34a20286fb9085afe25bd477afe07;p=thirdparty%2Funbound.git FreeBSD rc.d script for unbound. git-svn-id: file:///svn/unbound/trunk@957 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/contrib/README b/contrib/README new file mode 100644 index 000000000..3fecea173 --- /dev/null +++ b/contrib/README @@ -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 index 000000000..77b85ef50 --- /dev/null +++ b/contrib/rc_d_unbound @@ -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" diff --git a/doc/Changelog b/doc/Changelog index 1410b22e6..5bf00a14c 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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).