[BACK]Return to rc CVS log [TXT][DIR] Up to [local] / src / etc

Diff for /src/etc/rc between version 1.354 and 1.355

version 1.354, 2011/07/07 02:16:58 version 1.355, 2011/07/07 18:36:03
Line 413 
Line 413 
   
 echo -n 'starting initial daemons:'  echo -n 'starting initial daemons:'
   
 if [ X"${portmap}" = X"YES" ]; then  start_daemon portmap
         echo -n ' portmap';             portmap  
 fi  
   
 if [ X`domainname` != X ]; then  [ X"`domainname`" != X"" ] && \
         if [ -d /var/yp/`domainname` ]; then          start_daemon ypserv ypldap ypbind yppasswdd
                 # YP server capabilities needed...  
                 echo -n ' ypserv';              ypserv ${ypserv_flags}  
                 #echo -n ' ypxfrd';             ypxfrd  
         fi  
   
         if [ -d /var/yp/binding ]; then  
                 # YP client capabilities needed...  
                 echo -n ' ypbind';              ypbind  
         fi  
   
         if [ X"${yppasswdd_flags}" != X"NO" -a -d /var/yp/`domainname` ]; then  
                 # if we are the master server, run rpc.yppasswdd  
                 _host1=`ypwhich -m passwd 2> /dev/null`  
                 _host2=`hostname`  
                 if [ `grep '^lookup' /etc/resolv.conf | grep yp | wc -c` -ne 0 ]; then  
                         _host1=`ypmatch $_host1 hosts | cut -d' ' -f2`  
                         _host2=`ypmatch $_host2 hosts | cut -d' ' -f2 | head -1`  
                 else  
                         _host1=`echo $_host1 | nslookup | grep '^Name: ' | \  
                             sed -e 's/^Name:    //'`  
                         _host2=`echo $_host2 | nslookup | grep '^Name: ' | \  
                             sed -e 's/^Name:    //'`  
                 fi  
                 if [ "$_host2" = "$_host1" ]; then  
                         echo -n ' rpc.yppasswdd'  
                         rpc.yppasswdd ${yppasswdd_flags}  
                 fi  
         fi  
 fi  
   
 if [ X"${nfs_server}" = X"YES" -a -s /etc/exports -a \  if [ X"${nfs_server}" = X"YES" -a -s /etc/exports -a \
     `sed -e '/^#/d' < /etc/exports | wc -l` -ne 0 ]; then      `sed -e '/^#/d' < /etc/exports | wc -l` -ne 0 ]; then
         rm -f /var/db/mountdtab          rm -f /var/db/mountdtab
Line 633 
Line 602 
         aucat -l ${aucat_flags}          aucat -l ${aucat_flags}
 fi  fi
   
 # KerberosV master KDC  if [ X"${kdc_flags}" != X"NO" ]; then
 if [ X"${krb5_master_kdc}" = X"YES" ]; then          echo -n 'starting KerberosV daemons:'
         echo 'KerberosV master KDC'          start_daemon kdc kadmind kpasswdd
         /usr/libexec/kdc &          echo '.'
         /usr/libexec/kadmind &  
         /usr/libexec/kpasswdd &  
 fi  
   
 # KerberosV slave KDC  
 if [ X"${krb5_slave_kdc}" = X"YES" ]; then  
         echo 'KerberosV slave KDC'  
         /usr/libexec/kdc &  
         # Remember to enable hpropd in inetd.conf  
 fi  fi
   
 # If rc.firstime exists, run it just once, and make sure it is deleted  # If rc.firstime exists, run it just once, and make sure it is deleted

Legend:
Removed from v.1.354  
changed lines
  Added in v.1.355