Source rc.conf so that named.restart can restart named with the correct
flags. PR: misc/25049 Submitted by: Richard Roderick <richard@gohome.net>
This commit is contained in:
parent
9d10eb0c0c
commit
5551534696
@ -64,7 +64,7 @@
|
||||
This command sends a
|
||||
.Dv SIGKILL
|
||||
to the running name server and then
|
||||
starts a new one.
|
||||
starts a new one with the command line options specified in rc.conf .
|
||||
.Sh BUGS
|
||||
Does not check to see if the name server is actually running, and could
|
||||
use a stale PID cache file which may result in the death of an unrelated
|
||||
|
@ -4,4 +4,10 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
exec %DESTSBIN%/%INDOT%ndc restart
|
||||
if [ -r /etc/defaults/rc.conf ]; then
|
||||
. /etc/defaults/rc.conf
|
||||
source_rc_confs
|
||||
elif [ -r /etc/rc.conf ]; then
|
||||
. /etc/rc.conf
|
||||
fi
|
||||
exec %DESTSBIN%/%INDOT%ndc restart ${named_flags}
|
||||
|
Loading…
Reference in New Issue
Block a user