mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 19:43:41 +00:00
Sigh.. The patches to make ndc read /etc/sysconfig to find the correct
arguments to named got lost somewhere..
This commit is contained in:
parent
ec422cab2c
commit
781063905f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10148
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user