mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
FreeBSD rc.d script for unbound.
git-svn-id: file:///svn/unbound/trunk@957 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
a561a26a80
commit
c9d58a02d7
3 changed files with 30 additions and 0 deletions
4
contrib/README
Normal file
4
contrib/README
Normal file
|
|
@ -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.
|
||||
23
contrib/rc_d_unbound
Executable file
23
contrib/rc_d_unbound
Executable file
|
|
@ -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"
|
||||
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Reference in a new issue