Sigh.. The patches to make ndc read /etc/sysconfig to find the correct

arguments to named got lost somewhere..
This commit is contained in:
Peter Wemm 1995-08-21 03:21:38 +00:00
parent ec422cab2c
commit 781063905f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10148

View File

@ -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