diff options
author | peter <peter@FreeBSD.org> | 1995-08-21 03:21:38 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1995-08-21 03:21:38 +0000 |
commit | bb0c638ca370693c4ba9d6b000b136abfb742732 (patch) | |
tree | 9526f2beb8edabbe4bd02f56df4c799d3fcebbfe | |
parent | 648567a828585d1687f3a952261b28efd051eb36 (diff) | |
download | FreeBSD-src-bb0c638ca370693c4ba9d6b000b136abfb742732.zip FreeBSD-src-bb0c638ca370693c4ba9d6b000b136abfb742732.tar.gz |
Sigh.. The patches to make ndc read /etc/sysconfig to find the correct
arguments to named got lost somewhere..
-rw-r--r-- | usr.sbin/named/tools/ndc/ndc.sh | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/usr.sbin/named/tools/ndc/ndc.sh b/usr.sbin/named/tools/ndc/ndc.sh index a9a0557..b258d20 100644 --- a/usr.sbin/named/tools/ndc/ndc.sh +++ b/usr.sbin/named/tools/ndc/ndc.sh @@ -46,7 +46,14 @@ do echo "$0: start: named (pid $PID) already running" continue } - %INDOT%named && echo Name Server Started + # If there is a global system configuration file, suck it in. + if [ -f /etc/sysconfig ]; then + . /etc/sysconfig + fi + # $namedflags is imported from /etc/sysconfig + if [ "X${namedflags}" != "XNO" ]; then + %INDOT%named ${namedflags} && echo Name Server Started + fi ;; stop) [ $RUNNING -eq 0 ] && { @@ -62,7 +69,14 @@ do [ $RUNNING -eq 1 ] && { kill $PID && sleep 5 } - %INDOT%named && echo Name Server Restarted + # If there is a global system configuration file, suck it in. + if [ -f /etc/sysconfig ]; then + . /etc/sysconfig + fi + # $namedflags is imported from /etc/sysconfig + if [ "X${namedflags}" != "XNO" ]; then + %INDOT%named ${namedflags} && echo Name Server Restarted + fi ;; *) eval "$USAGE";; esac |