From 2f7f4bd084026d236ed6f3d5b28ef5bb686d5ec0 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 03:29:07 +0000 Subject: auto-import changelog data from bind-8.2.2_P5-25.src.rpm Sat Aug 05 2000 Bill Nottingham - condrestart fixes Tue Jul 18 2000 Nalin Dahyabhai - change the init script to take condrestart, not cond-restart - add sh-utils, /bin/cat, perl, /bin/chmod, /usr/sbin/useradd as prereqs for the %pre and %post scripts Sun Jul 16 2000 Bernhard Rosenkraenzer - Don't prereq /etc/init.d Sat Jul 15 2000 Bill Nottingham - move initscript back Wed Jul 12 2000 Prospector - automatic rebuild Sun Jul 09 2000 Florian La Roche - add "exit 0" for uninstall case Fri Jul 07 2000 Florian La Roche - add prereq init.d and cleanup install section Fri Jun 30 2000 Trond Eivind Glomsrød - fix the init script Wed Jun 28 2000 Nalin Dahyabhai - make libbind.a and nslookup.help readable again by setting INSTALL_LIB to "" Mon Jun 26 2000 Bernhard Rosenkränzer - Fix up the initscript (Bug #13033) - Fix build with current glibc (Bug #12755) - /etc/rc.d/init.d -> /etc/init.d - use %{_mandir} rather than /usr/share/man Mon Jun 19 2000 Bill Nottingham - fix conflict with man-pages - remove compatibilty chkconfig links - initscript munging Wed Jun 14 2000 Nalin Dahyabhai - modify logrotate setup to use PID file - temporarily disable optimization by unsetting $RPM_OPT_FLAGS at build-time - actually bump the release this time Sun Jun 04 2000 Bernhard Rosenkraenzer - FHS compliance Mon Apr 17 2000 Nalin Dahyabhai - clean up restart patch Mon Apr 10 2000 Nalin Dahyabhai - provide /var/named (fix for bugs #9847, #10205) - preserve args when restarted via ndc(8) (bug #10227) - make resolv.conf(5) a link to resolver(5) (bug #10245) - fix SYSTYPE bug in all makefiles - move creation of named user from %post into %pre Mon Feb 28 2000 Bernhard Rosenkränzer - Fix TTL (patch from ISC, Bug #9820) Wed Feb 16 2000 Bernhard Rosenkränzer - fix typo in spec (it's %post, without a leading blank) introduced in -6 - change SYSTYPE to linux Fri Feb 11 2000 Bill Nottingham - pick a standard < 100 uid/gid for named Fri Feb 04 2000 Elliot Lee - Pass named a '-u named' parameter by default, and add/remove user. Thu Feb 03 2000 Bernhard Rosenkraenzer - fix host mx bug (Bug #9021) Mon Jan 31 2000 Cristian Gafton - rebuild to fix dependencies - man pages are compressed Wed Jan 19 2000 Bernhard Rosenkraenzer - It's /usr/bin/killall, not /usr/sbin/killall (Bug #8063) Mon Jan 17 2000 Bernhard Rosenkraenzer - Fix up location of named-bootconf.pl and make it executable (Bug #8028) - bind-devel requires bind Mon Nov 15 1999 Bernhard Rosenkraenzer - update to 8.2.2-P5 Wed Nov 10 1999 Bill Nottingham - update to 8.2.2-P3 Tue Oct 12 1999 Cristian Gafton - add patch to stop a cache only server from complaining about lame servers on every request. Fri Sep 24 1999 Preston Brown - use real stop and start in named.init for restart, not ndc restart, it has problems when named has changed during a package update... (# 4890) Fri Sep 10 1999 Bill Nottingham - chkconfig --del in %preun, not %postun Mon Aug 16 1999 Bill Nottingham - initscript munging Mon Jul 26 1999 Bill Nottingham - fix installed chkconfig links to match init file Sat Jul 03 1999 Jeff Johnson - conflict with new (in man-1.24) man pages (#3876,#3877). Tue Jun 29 1999 Bill Nottingham - fix named.logrotate (wrong %SOURCE) Fri Jun 25 1999 Jeff Johnson - update to 8.2.1. - add named.logrotate (#3571). - hack around egcs-1.1.2 -m486 bug (#3413, #3485). - vet file list. Fri Jun 18 1999 Bill Nottingham - don't run by default Sun May 30 1999 Jeff Johnson - nslookup fixes (#2463). - missing files (#3152). Sat May 01 1999 Stepan Kasal - nslookup patched: to count numRecords properly to fix subsequent calls to ls -d to parse "view" and "finger" commands properly the view hack updated for bind-8 (using sed) Wed Mar 31 1999 Bill Nottingham - add ISC patch - add quick hack to make host not crash - add more docs Fri Mar 26 1999 Cristian Gafton - add probing information in the init file to keep linuxconf happy - dont strip libbind Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 3) Wed Mar 17 1999 Preston Brown - removed 'done' output at named shutdown. Tue Mar 16 1999 Cristian Gafton - version 8.2 Wed Dec 30 1998 Cristian Gafton - patch to use the __FDS_BITS macro - build for glibc 2.1 Wed Sep 23 1998 Jeff Johnson - change named.restart to /usr/sbin/ndc restart Sat Sep 19 1998 Jeff Johnson - install man pages correctly. - change K10named to K45named. Wed Aug 12 1998 Jeff Johnson - don't start if /etc/named.conf doesn't exist. Sat Aug 08 1998 Jeff Johnson - autmagically create /etc/named.conf from /etc/named.boot in %post - remove echo in %post Wed Jun 10 1998 Jeff Johnson - merge in 5.1 mods Sun Apr 12 1998 Manuel J. Galan - Several essential modifications to build and install correctly. - Modified 'ndc' to avoid deprecated use of '-' Mon Dec 22 1997 Scott Lampert - Used buildroot - patched bin/named/ns_udp.c to use for include on Redhat 5.0 instead of MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- named.init | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100755 named.init (limited to 'named.init') diff --git a/named.init b/named.init new file mode 100755 index 0000000..80fdb3d --- /dev/null +++ b/named.init @@ -0,0 +1,92 @@ +#!/bin/bash +# +# named This shell script takes care of starting and stopping +# named (BIND DNS server). +# +# chkconfig: - 55 45 +# description: named (BIND) is a Domain Name Server (DNS) \ +# that is used to resolve host names to IP addresses. +# probe: true + +# Source function library. +. /etc/rc.d/init.d/functions + +# Source networking configuration. +. /etc/sysconfig/network + +# Check that networking is up. +[ ${NETWORKING} = "no" ] && exit 0 + +[ -f /usr/sbin/named ] || exit 0 + +[ -f /etc/named.conf ] || exit 0 + +RETVAL=0 + +start() { + # Start daemons. + echo -n "Starting named: " + daemon named -u named + RETVAL=$? + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/named + echo + return $RETVAL +} +stop() { + # Stop daemons. + echo -n "Shutting down named: " + killproc named + RETVAL=$? + [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/named + echo + return $RETVAL +} +rhstatus() { + /usr/sbin/ndc status + return $? +} +restart() { + stop + start +} +reload() { + /usr/sbin/ndc reload + 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 + return $? +} + +# See how we were called. +case "$1" in + start) + start + ;; + stop) + stop + ;; + status) + rhstatus + ;; + restart) + restart + ;; + condrestart) + [ -f /var/lock/subsys/named ] && restart || : + ;; + reload) + reload + ;; + probe) + probe + ;; + *) + echo "Usage: named {start|stop|status|restart|condrestart|reload|probe}" + exit 1 +esac + +exit $? + -- cgit