diff options
-rw-r--r-- | usr.sbin/named.restart/named.restart.8 | 2 | ||||
-rw-r--r-- | usr.sbin/named.restart/named.restart.sh | 8 |
2 files changed, 8 insertions, 2 deletions
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} |