local_unbound (289592) | local_unbound (291582) |
---|---|
1#!/bin/sh 2# | 1#!/bin/sh 2# |
3# $FreeBSD: head/etc/rc.d/local_unbound 289592 2015-10-19 15:56:59Z des $ | 3# $FreeBSD: head/etc/rc.d/local_unbound 291582 2015-12-01 13:20:21Z des $ |
4# 5 6# PROVIDE: local_unbound 7# REQUIRE: FILESYSTEMS netif resolv 8# BEFORE: NETWORKING 9# KEYWORD: shutdown 10 11. /etc/rc.subr --- 7 unchanged lines hidden (view full) --- 19start_precmd="local_unbound_prestart" 20start_postcmd="local_unbound_poststart" 21reload_precmd="local_unbound_configtest" 22anchor_cmd="local_unbound_anchor" 23configtest_cmd="local_unbound_configtest" 24setup_cmd="local_unbound_setup" 25pidfile="/var/run/${name}.pid" 26 | 4# 5 6# PROVIDE: local_unbound 7# REQUIRE: FILESYSTEMS netif resolv 8# BEFORE: NETWORKING 9# KEYWORD: shutdown 10 11. /etc/rc.subr --- 7 unchanged lines hidden (view full) --- 19start_precmd="local_unbound_prestart" 20start_postcmd="local_unbound_poststart" 21reload_precmd="local_unbound_configtest" 22anchor_cmd="local_unbound_anchor" 23configtest_cmd="local_unbound_configtest" 24setup_cmd="local_unbound_setup" 25pidfile="/var/run/${name}.pid" 26 |
27load_rc_config $name 28 |
|
27: ${local_unbound_workdir:=/var/unbound} 28: ${local_unbound_config:=${local_unbound_workdir}/unbound.conf} 29: ${local_unbound_flags:="-c ${local_unbound_config}"} 30: ${local_unbound_forwardconf:=${local_unbound_workdir}/forward.conf} 31: ${local_unbound_controlconf:=${local_unbound_workdir}/control.conf} 32: ${local_unbound_anchor:=${local_unbound_workdir}/root.key} 33: ${local_unbound_forwarders:=} 34 | 29: ${local_unbound_workdir:=/var/unbound} 30: ${local_unbound_config:=${local_unbound_workdir}/unbound.conf} 31: ${local_unbound_flags:="-c ${local_unbound_config}"} 32: ${local_unbound_forwardconf:=${local_unbound_workdir}/forward.conf} 33: ${local_unbound_controlconf:=${local_unbound_workdir}/control.conf} 34: ${local_unbound_anchor:=${local_unbound_workdir}/root.key} 35: ${local_unbound_forwarders:=} 36 |
35load_rc_config $name 36 | |
37do_as_unbound() 38{ 39 echo "$@" | su -m unbound 40} 41 42# 43# Retrieve or update the DNSSEC root anchor 44# --- 71 unchanged lines hidden --- | 37do_as_unbound() 38{ 39 echo "$@" | su -m unbound 40} 41 42# 43# Retrieve or update the DNSSEC root anchor 44# --- 71 unchanged lines hidden --- |