summaryrefslogtreecommitdiffstats
path: root/named.init
diff options
context:
space:
mode:
authorcvsdist <cvsdist@fedoraproject.org>2004-09-09 03:30:04 +0000
committercvsdist <cvsdist@fedoraproject.org>2004-09-09 03:30:04 +0000
commitaed71218643fec789d5bd25df7fb5f6382a53a52 (patch)
tree87ee0c3853bb392fd6e5fce54d45e5b58bc3f6eb /named.init
parenta47288d890c8db4501d19ed0deefbd154b9dcda5 (diff)
downloadbind-aed71218643fec789d5bd25df7fb5f6382a53a52.tar.gz
bind-aed71218643fec789d5bd25df7fb5f6382a53a52.tar.xz
bind-aed71218643fec789d5bd25df7fb5f6382a53a52.zip
auto-import changelog data from bind-9.1.0-10.src.rpmbind-9_1_0-10RHL-7_1-split
Thu Mar 15 2001 Bernhard Rosenkraenzer <bero@redhat.com> 9.1.0-10 - Merge fixes from 9.1.1rc5 Sun Mar 11 2001 Bernhard Rosenkraenzer <bero@redhat.com> 9.1.0-9 - Work around bind 8 -> bind 9 migration problem when using buggy zone files: accept zones without a TTL, but spew out a big fat warning. (#31393) Thu Mar 08 2001 Bernhard Rosenkraenzer <bero@redhat.com> - Add fixes from rc4 Fri Mar 02 2001 Nalin Dahyabhai <nalin@redhat.com> - rebuild in new environment Thu Mar 01 2001 Bernhard Rosenkraenzer <bero@redhat.com> - killall -HUP named if rndc reload fails (#30113) Tue Feb 27 2001 Bernhard Rosenkraenzer <bero@redhat.com> - Merge some fixes from 9.1.1rc3 Tue Feb 20 2001 Bernhard Rosenkraenzer <bero@redhat.com> - Don't use the standard rndc key from the documentation, instead, create a random one at installation time (#26358) - Make /etc/rndc.conf readable by user named only, it contains secret keys Tue Feb 20 2001 Bernhard Rosenkraenzer <bero@redhat.com> - 9.1.1 probably won't be out in time, revert to 9.1.0 and apply fixes from 9.1.1rc2 - bind requires bind-utils (#28317) Tue Feb 13 2001 Bernhard Rosenkraenzer <bero@redhat.com> - Update to rc2, fixes 2 more bugs - Fix build with glibc >= 2.2.1-7 Thu Feb 08 2001 Bernhard Rosenkraenzer <bero@redhat.com> - Update to 9.1.1rc1; fixes 17 bugs (14 of them affecting us; 1 was fixed in a Red Hat patch already, 2 others are portability improvements) Wed Feb 07 2001 Bernhard Rosenkraenzer <bero@redhat.com> - Remove initscripts 5.54 requirement (#26489) Mon Jan 29 2001 Bernhard Rosenkraenzer <bero@redhat.com> - Add named-checkconf, named-checkzone (#25170) Mon Jan 29 2001 Trond Eivind Glomsrød <teg@redhat.com> - use echo, not gprintf
Diffstat (limited to 'named.init')
-rwxr-xr-xnamed.init24
1 files changed, 15 insertions, 9 deletions
diff --git a/named.init b/named.init
index 80fdb3d..8b2222b 100755
--- a/named.init
+++ b/named.init
@@ -15,18 +15,24 @@
. /etc/sysconfig/network
# Check that networking is up.
-[ ${NETWORKING} = "no" ] && exit 0
+[ "${NETWORKING}" = "no" ] && exit 0
+
+[ -f /etc/sysconfig/named ] && . /etc/sysconfig/named
[ -f /usr/sbin/named ] || exit 0
[ -f /etc/named.conf ] || exit 0
RETVAL=0
+prog="named"
start() {
# Start daemons.
- echo -n "Starting named: "
- daemon named -u named
+ echo -n $"Starting $prog: "
+ if [ -n "${ROOTDIR}" -a "x${ROOTDIR}" != "x/" ]; then
+ OPTIONS="${OPTIONS} -t ${ROOTDIR}"
+ fi
+ daemon named -u named ${OPTIONS}
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/named
echo
@@ -34,7 +40,7 @@ start() {
}
stop() {
# Stop daemons.
- echo -n "Shutting down named: "
+ echo -n $"Stopping $prog: "
killproc named
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/named
@@ -42,7 +48,7 @@ stop() {
return $RETVAL
}
rhstatus() {
- /usr/sbin/ndc status
+ /usr/sbin/rndc status
return $?
}
restart() {
@@ -50,13 +56,13 @@ restart() {
start
}
reload() {
- /usr/sbin/ndc reload
+ /usr/sbin/rndc reload >/dev/null 2>&1 || /usr/bin/killall -HUP named
return $?
}
probe() {
# named knows how to reload intelligently; we don't want linuxconf
# to offer to restart every time
- /usr/sbin/ndc reload >/dev/null 2>&1 || echo start
+ /usr/sbin/rndc reload >/dev/null 2>&1 || echo start
return $?
}
@@ -75,7 +81,7 @@ case "$1" in
restart
;;
condrestart)
- [ -f /var/lock/subsys/named ] && restart || :
+ [ -f /var/lock/subsys/named ] && restart
;;
reload)
reload
@@ -84,7 +90,7 @@ case "$1" in
probe
;;
*)
- echo "Usage: named {start|stop|status|restart|condrestart|reload|probe}"
+ echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|probe}"
exit 1
esac