initscript is ready for parallel booting (#246878)

This commit is contained in:
Adam Tkac 2007-07-17 10:48:09 +00:00
parent f3718dfd1b
commit 969b1cbd8f
2 changed files with 23 additions and 11 deletions

View File

@ -16,7 +16,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
Name: bind Name: bind
License: BSD-like License: BSD-like
Version: 9.5.0a5 Version: 9.5.0a5
Release: 3%{?dist} Release: 3.2%{?dist}
Epoch: 31 Epoch: 31
Url: http://www.isc.org/products/BIND/ Url: http://www.isc.org/products/BIND/
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -465,7 +465,7 @@ fi
%postun %postun
/sbin/ldconfig /sbin/ldconfig
if [ "$1" -ge 1 ]; then if [ "$1" -ge 1 ]; then
/sbin/service named condrestart >/dev/null 2>&1 || :; /sbin/service named try-restart >/dev/null 2>&1 || :;
fi; fi;
:; :;
@ -703,6 +703,9 @@ rm -rf ${RPM_BUILD_ROOT}
%endif %endif
%changelog %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 * 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) - handle integer overflow in isc_time_secondsastimet function gracefully (#247856)

View File

@ -8,14 +8,15 @@
# that is used to resolve host names to IP addresses. # that is used to resolve host names to IP addresses.
# probe: true # probe: true
# Return codes ### BEGIN INIT INFO
# - script (all except status command) # Provides: $named
# - 2 invalid or excess argument(s) # Required-Start: $local_fs $network $syslog
# - 3 unimplemented feature (for example, "reload") # Required-Stop: $local_fs $network $syslog
# - 4 user had insufficient privilege # Default-Start: 3 5
# - 5 program is not installed # Default-Stop: 0 1 2 4 6
# - 6 program is not configured # Short-Description: start|stop|status|restart|try-restart|reload|force-reload DNS server
# - 7 program is not running # Description: control ISC BIND implementation of DNS server
### END INIT INFO
# Source function library. # Source function library.
. /etc/rc.d/init.d/functions . /etc/rc.d/init.d/functions
@ -47,6 +48,7 @@ for a in $OPTIONS; do
dbusEnabled=1; dbusEnabled=1;
fi; fi;
done done
if [ -z $dbusEnabled ] && [ -z "$DISABLE_NAMED_DBUS" ] ; then if [ -z $dbusEnabled ] && [ -z "$DISABLE_NAMED_DBUS" ] ; then
for l in 0 1 2 3 4 5 6; do for l in 0 1 2 3 4 5 6; do
if /sbin/chkconfig --level=$l NetworkManager >/dev/null 2>&1; then if /sbin/chkconfig --level=$l NetworkManager >/dev/null 2>&1; then
@ -243,13 +245,20 @@ case "$1" in
restart restart
;; ;;
condrestart) 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 if [ -e /var/lock/subsys/named ]; then restart; fi
;; ;;
reload) reload)
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 exit 3
esac esac