From bb0c638ca370693c4ba9d6b000b136abfb742732 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 21 Aug 1995 03:21:38 +0000 Subject: Sigh.. The patches to make ndc read /etc/sysconfig to find the correct arguments to named got lost somewhere.. --- usr.sbin/named/tools/ndc/ndc.sh | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'usr.sbin/named') 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 -- cgit v1.1