mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75403
@ -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