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:
Murray Stokely 2001-04-11 02:12:14 +00:00
parent 9d10eb0c0c
commit 5551534696
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75403
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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}