From 2c672eefadbb8dbdf2c91e1d1acad8c10e276fe0 Mon Sep 17 00:00:00 2001 From: murray Date: Wed, 11 Apr 2001 02:12:14 +0000 Subject: Source rc.conf so that named.restart can restart named with the correct flags. PR: misc/25049 Submitted by: Richard Roderick --- usr.sbin/named.restart/named.restart.8 | 2 +- usr.sbin/named.restart/named.restart.sh | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'usr.sbin/named.restart') diff --git a/usr.sbin/named.restart/named.restart.8 b/usr.sbin/named.restart/named.restart.8 index 0efb41a3..fd3e446 100644 --- a/usr.sbin/named.restart/named.restart.8 +++ b/usr.sbin/named.restart/named.restart.8 @@ -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 diff --git a/usr.sbin/named.restart/named.restart.sh b/usr.sbin/named.restart/named.restart.sh index 518f6f2..b30e96f 100644 --- a/usr.sbin/named.restart/named.restart.sh +++ b/usr.sbin/named.restart/named.restart.sh @@ -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} -- cgit v1.1