diff options
author | murray <murray@FreeBSD.org> | 2001-04-11 02:12:14 +0000 |
---|---|---|
committer | murray <murray@FreeBSD.org> | 2001-04-11 02:12:14 +0000 |
commit | 2c672eefadbb8dbdf2c91e1d1acad8c10e276fe0 (patch) | |
tree | 92777bcc995be86e730cc99d06a31d9e4e4f4c5c /usr.sbin/named.restart | |
parent | 8b9d89e1e4b0098c45e5dc980efe68065eb46dba (diff) | |
download | FreeBSD-src-2c672eefadbb8dbdf2c91e1d1acad8c10e276fe0.zip FreeBSD-src-2c672eefadbb8dbdf2c91e1d1acad8c10e276fe0.tar.gz |
Source rc.conf so that named.restart can restart named with the correct
flags.
PR: misc/25049
Submitted by: Richard Roderick <richard@gohome.net>
Diffstat (limited to 'usr.sbin/named.restart')
-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} |