initscript is ready for parallel booting (#246878)
This commit is contained in:
parent
f3718dfd1b
commit
969b1cbd8f
@ -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)
|
||||
@ -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)
|
||||
|
||||
|
27
named.init
27
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user