diff options
| author | jvdias <jvdias@fedoraproject.org> | 2006-07-20 18:40:14 +0000 |
|---|---|---|
| committer | jvdias <jvdias@fedoraproject.org> | 2006-07-20 18:40:14 +0000 |
| commit | a39c9daff895dff28af80085b3b72f68e7018592 (patch) | |
| tree | 10038b20bc691ce17da97f13e0659b833f4a3919 | |
| parent | a622638f5e0f556953efda101cefc200da0d6265 (diff) | |
update to auto-enable of D-BUS if NetworkManager enabled
| -rw-r--r-- | bind.spec | 3 | ||||
| -rwxr-xr-x | named.init | 21 | ||||
| -rw-r--r-- | named.sysconfig | 6 |
3 files changed, 18 insertions, 12 deletions
@@ -519,7 +519,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.114 2006/07/19 19:35:24 jvdias 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.115 2006/07/20 18:40:14 jvdias 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: @@ -676,7 +676,6 @@ exit 0 %{_libdir}/libbind.so* %defattr(0644,root,root,0755) %{_libdir}/libbind.a -%{_libdir}/libbind.so %{_libdir}/pkgconfig/libbind.pc %{_includedir}/bind %{_mandir}/man3/libbind-* @@ -64,13 +64,6 @@ if [ ! -r ${ROOTDIR}${named_conf} ] ; then fi; fi; -NetworkManagerEnabled=0 -for l in 0 1 2 3 4 5 6; do - if /sbin/chkconfig --level=$l NetworkManager >/dev/null 2>&1; then - NetworkManagerEnabled=1; - fi; -done - dbusEnabled=0; for a in $OPTIONS; do if [ $a = "-D" ]; then @@ -78,9 +71,17 @@ for a in $OPTIONS; do fi; done -if [ $dbusEnabled -eq 0 ] && [ $NetworkManagerEnabled -eq 1 ]; then - OPTIONS="$OPTIONS -D"; - dbusEnabled=1; +if [ $dbusEnabled -eq 0 ] && [ -z "$DISABLE_NAMED_DBUS" ] ; then + NetworkManagerEnabled=0 + for l in 0 1 2 3 4 5 6; do + if /sbin/chkconfig --level=$l NetworkManager >/dev/null 2>&1; then + NetworkManagerEnabled=1; + fi; + done + if [ $NetworkManagerEnabled -eq 1 ]; then + OPTIONS="$OPTIONS -D"; + fi; + dbusEnabled=1; fi start() { diff --git a/named.sysconfig b/named.sysconfig index 872bae2..395c956 100644 --- a/named.sysconfig +++ b/named.sysconfig @@ -21,3 +21,9 @@ # ENABLE_SDB=yes -- This enables use of 'named_sdb', which has support # -- for the ldap, pgsql and dir zone database backends # -- compiled in, to be used instead of named. +# +# DISABLE_NAMED_DBUS=[1y]-- If NetworkManager is enabled in any runlevel, then +# the initscript will by default enable named's D-BUS +# support with the named -D option. This setting disables +# this behavior. +# |
