mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-24 00:18:52 +00:00
26 lines
586 B
Plaintext
26 lines
586 B
Plaintext
|
#!/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"
|