aboutsummaryrefslogtreecommitdiff
path: root/external/unbound/contrib/rc_d_unbound
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2014-10-06 08:51:44 +0200
committerRiccardo Spagni <ric@spagni.net>2014-10-06 08:52:16 +0200
commit3463f0ab52a84b79977c3e67177637e62265c89c (patch)
tree1e2077aa15fa18fcc9b00fa23c9514d46df6ef95 /external/unbound/contrib/rc_d_unbound
parentfix for miniupnpc static compile under Windows (diff)
parentadded aabramov's gpg key (diff)
downloadmonero-3463f0ab52a84b79977c3e67177637e62265c89c.tar.xz
Merge pull request #171
32be6ae added aabramov's gpg key (Riccardo Spagni) 010bfcf minor English wordlist tweaks (Riccardo Spagni) 9ef094b added unbound to external deps (Riccardo Spagni) 732493c split mnemonic printout over 3 lines (Riccardo Spagni)
Diffstat (limited to 'external/unbound/contrib/rc_d_unbound')
-rwxr-xr-xexternal/unbound/contrib/rc_d_unbound25
1 files changed, 25 insertions, 0 deletions
diff --git a/external/unbound/contrib/rc_d_unbound b/external/unbound/contrib/rc_d_unbound
new file mode 100755
index 000000000..56516147f
--- /dev/null
+++ b/external/unbound/contrib/rc_d_unbound
@@ -0,0 +1,25 @@
+#!/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`
+
+load_rc_config $name
+
+command="/usr/local/sbin/unbound"
+pidfile=${unbound_pidfile:-"/usr/local/etc/unbound/unbound.pid"}
+command_args=${unbound_flags:-"-c /usr/local/etc/unbound/unbound.conf"}
+extra_commands="reload"
+
+run_rc_command "$1"