summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Tkac <atkac@fedoraproject.org>2007-07-17 10:48:09 +0000
committerAdam Tkac <atkac@fedoraproject.org>2007-07-17 10:48:09 +0000
commit5e471bd486f1c3f99a7d2ab43d896e60749b3154 (patch)
treed1e8f317b33e24a1142c53002bc3bc05f831f5e2
parent45c988ee4f52e7ac5e64d35e28291dfe4494e013 (diff)
initscript is ready for parallel booting (#246878)
-rw-r--r--bind.spec9
-rwxr-xr-xnamed.init27
2 files changed, 24 insertions, 12 deletions
diff --git a/bind.spec b/bind.spec
index 693b0a1..21b26c6 100644
--- a/bind.spec
+++ b/bind.spec
@@ -16,7 +16,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
Name: bind
License: BSD-like
Version: 9.5.0a5
-Release: 3%{?dist}
+Release: 3.2%{?dist}
Epoch: 31
Url: http://www.isc.org/products/BIND/
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -416,7 +416,7 @@ for f in my.internal.zone.db slaves/my.slave.internal.zone.db slaves/my.ddns.int
echo '@ in soa localhost. root 1 3H 15M 1W 1D
ns localhost.' > sample/var/named/$f;
done
-/usr/bin/tail -n '+'`/bin/egrep -n '\\$Id: bind.spec,v 1.193 2007/07/17 06:09:36 atkac Exp $/+1/' | bc` bin/rndc/rndc.conf | sed '/Sample rndc configuration file./{p;i\
+/usr/bin/tail -n '+'`/bin/egrep -n '\\$Id: bind.spec,v 1.194 2007/07/17 10:48:09 atkac Exp $/+1/' | bc` bin/rndc/rndc.conf | sed '/Sample rndc configuration file./{p;i\
*\
* NOTE: you only need to create this file if it is to\
* differ from the following default contents:
@@ -465,7 +465,7 @@ fi
%postun
/sbin/ldconfig
if [ "$1" -ge 1 ]; then
- /sbin/service named condrestart >/dev/null 2>&1 || :;
+ /sbin/service named try-restart >/dev/null 2>&1 || :;
fi;
:;
@@ -703,6 +703,9 @@ rm -rf ${RPM_BUILD_ROOT}
%endif
%changelog
+* Tue Jul 17 2007 Adam Tkac <atkac redhat com> 31:9.5.0a5-3.2.fc8
+- initscript should be ready for parallel booting (#246878)
+
* Tue Jul 17 2007 Adam Tkac <atkac redhat com> 31:9.5.0a5-3.fc8
- handle integer overflow in isc_time_secondsastimet function gracefully (#247856)
diff --git a/named.init b/named.init
index 2e1863a..d693da7 100755
--- a/named.init
+++ b/named.init
@@ -8,14 +8,15 @@
# that is used to resolve host names to IP addresses.
# probe: true
-# Return codes
-# - script (all except status command)
-# - 2 invalid or excess argument(s)
-# - 3 unimplemented feature (for example, "reload")
-# - 4 user had insufficient privilege
-# - 5 program is not installed
-# - 6 program is not configured
-# - 7 program is not running
+### BEGIN INIT INFO
+# Provides: $named
+# Required-Start: $local_fs $network $syslog
+# Required-Stop: $local_fs $network $syslog
+# Default-Start: 3 5
+# Default-Stop: 0 1 2 4 6
+# Short-Description: start|stop|status|restart|try-restart|reload|force-reload DNS server
+# Description: control ISC BIND implementation of DNS server
+### END INIT INFO
# Source function library.
. /etc/rc.d/init.d/functions
@@ -47,6 +48,7 @@ for a in $OPTIONS; do
dbusEnabled=1;
fi;
done
+
if [ -z $dbusEnabled ] && [ -z "$DISABLE_NAMED_DBUS" ] ; then
for l in 0 1 2 3 4 5 6; do
if /sbin/chkconfig --level=$l NetworkManager >/dev/null 2>&1; then
@@ -243,13 +245,20 @@ case "$1" in
restart
;;
condrestart)
+ echo "condrestart option is obsolete. Use try-restart instead"
if [ -e /var/lock/subsys/named ]; then restart; fi
;;
+ try-restart)
+ if [ -e /var/lock/subsys/named ]; then restart; fi
+ ;;
reload)
reload
;;
+ force-reload)
+ if ! reload; then restart; fi
+ ;;
*)
- echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
+ echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
exit 3
esac