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

Diff for /src/etc/rc between version 1.287 and 1.288

version 1.287, 2006/06/02 21:32:50 version 1.288, 2006/08/04 11:43:43
Line 307 
Line 307 
         fi          fi
 fi  fi
   
 # $named_flags is imported from /etc/rc.conf;  
 # if $named_flags != NO, named is run.  
 if [ X"${named_flags}" != X"NO" ]; then  if [ X"${named_flags}" != X"NO" ]; then
         if ! cmp -s /etc/rndc.key /var/named/etc/rndc.key ; then          if ! cmp -s /etc/rndc.key /var/named/etc/rndc.key ; then
                 echo -n "rndc-confgen: generating new shared secret... "                  echo -n "rndc-confgen: generating new shared secret... "
Line 323 
Line 321 
         echo 'starting named';          named $named_flags          echo 'starting named';          named $named_flags
 fi  fi
   
 # $sasyncd_flags is imported from /etc/rc.conf;  
 # If $sasyncd_flags == NO, sasyncd isn't run.  
 if [ X"${sasyncd_flags}" != X"NO" ]; then  if [ X"${sasyncd_flags}" != X"NO" ]; then
         echo 'starting sasyncd';        sasyncd ${sasyncd_flags}          echo 'starting sasyncd';        sasyncd ${sasyncd_flags}
 fi  fi
   
 # $isakmpd_flags is imported from /etc/rc.conf;  
 # If $isakmpd_flags == NO, isakmpd isn't run.  
 if [ X"${isakmpd_flags}" != X"NO" ]; then  if [ X"${isakmpd_flags}" != X"NO" ]; then
         echo 'starting isakmpd';        isakmpd ${isakmpd_flags}          echo 'starting isakmpd';        isakmpd ${isakmpd_flags}
 fi  fi
   
 # $ipsec is imported from /etc/rc.conf;  
 # if $ipsec == NO or /etc/ipsec.conf doesn't exist, then  
 # ipsecctl isn't run.  
 if [ X"${ipsec}" != X"NO" ]; then  if [ X"${ipsec}" != X"NO" ]; then
         if [ -f ${ipsec_rules} ]; then          if [ -f ${ipsec_rules} ]; then
                 ipsecctl -f ${ipsec_rules}                  ipsecctl -f ${ipsec_rules}
Line 346 
Line 337 
   
 echo -n 'starting initial daemons:'  echo -n 'starting initial daemons:'
   
 # $portmap is imported from /etc/rc.conf;  
 # if $portmap == YES, the portmapper is started.  
 if [ X"${portmap}" = X"YES" ]; then  if [ X"${portmap}" = X"YES" ]; then
         echo -n ' portmap';             portmap          echo -n ' portmap';             portmap
 fi  fi
Line 384 
Line 373 
         fi          fi
 fi  fi
   
 # $nfs_server is imported from /etc/rc.conf;  
 # if $nfs_server == YES, the machine is setup for being an nfs server  
 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 408 
Line 395 
         echo -n ' rdate';       rdate -s ${rdate_flags}          echo -n ' rdate';       rdate -s ${rdate_flags}
 fi  fi
   
 # $timed_flags is imported from /etc/rc.conf;  
 # if $timed_flags == NO, timed isn't run.  
 if [ X"${timed_flags}" != X"NO" ]; then  if [ X"${timed_flags}" != X"NO" ]; then
         echo -n ' timed'; timed $timed_flags          echo -n ' timed'; timed $timed_flags
 fi  fi
Line 566 
Line 551 
   
 echo -n starting network daemons:  echo -n starting network daemons:
   
 # $routed_flags are imported from /etc/rc.conf.  
 # If $routed_flags == NO, routed isn't run.  
 if [ X"${routed_flags}" != X"NO" ]; then  if [ X"${routed_flags}" != X"NO" ]; then
         echo -n ' routed';              routed $routed_flags          echo -n ' routed';              routed $routed_flags
 fi  fi
   
 # $mrouted_flags is imported from /etc/rc.conf;  
 # If $mrouted_flags == NO, then mrouted isn't run.  
 if [ X"${mrouted_flags}" != X"NO" ]; then  if [ X"${mrouted_flags}" != X"NO" ]; then
         echo -n ' mrouted';             mrouted $mrouted_flags          echo -n ' mrouted';             mrouted $mrouted_flags
 fi  fi
Line 590 
Line 571 
         echo -n ' bgpd';                /usr/sbin/bgpd $bgpd_flags          echo -n ' bgpd';                /usr/sbin/bgpd $bgpd_flags
 fi  fi
   
 # $dhcpd_flags is imported from /etc/rc.conf  
 # If $dhcpd_flags == NO or /etc/dhcpd.conf doesn't exist, then dhcpd isn't run.  
 if [ X"${dhcpd_flags}" != X"NO" -a -f /etc/dhcpd.conf ]; then  if [ X"${dhcpd_flags}" != X"NO" -a -f /etc/dhcpd.conf ]; then
         touch /var/db/dhcpd.leases          touch /var/db/dhcpd.leases
         if [ -f /etc/dhcpd.interfaces ]; then          if [ -f /etc/dhcpd.interfaces ]; then
Line 607 
Line 586 
 if ifconfig lo0 inet6 >/dev/null 2>&1; then  if ifconfig lo0 inet6 >/dev/null 2>&1; then
         fw=`sysctl -n net.inet6.ip6.forwarding`          fw=`sysctl -n net.inet6.ip6.forwarding`
         if [ X"${fw}" = X"0" ]; then          if [ X"${fw}" = X"0" ]; then
                 # $rtsold_flags is imported from /etc/rc.conf;  
                 # If $rtsold_flags == NO, then rtsold isn't run.  
                 if [ X"${rtsold_flags}" != X"NO" ]; then                  if [ X"${rtsold_flags}" != X"NO" ]; then
                         echo -n ' rtsold'                          echo -n ' rtsold'
                         /usr/sbin/rtsold ${rtsold_flags}                          /usr/sbin/rtsold ${rtsold_flags}
                 fi                  fi
         else          else
                 # $route6d_flags is imported from /etc/rc.conf;  
                 # If $route6d_flags == NO, then route6d isn't run.  
                 if [ X"${route6d_flags}" != X"NO" ]; then                  if [ X"${route6d_flags}" != X"NO" ]; then
                         echo -n ' route6d'                          echo -n ' route6d'
                         /usr/sbin/route6d ${route6d_flags}                          /usr/sbin/route6d ${route6d_flags}
                 fi                  fi
                 # $rtadvd_flags is imported from /etc/rc.conf;  
                 # If $rtadvd_flags == NO, then rtadvd isn't run.  
                 if [ X"${rtadvd_flags}" != X"NO" ]; then                  if [ X"${rtadvd_flags}" != X"NO" ]; then
                         echo -n ' rtadvd'                          echo -n ' rtadvd'
                         /usr/sbin/rtadvd ${rtadvd_flags}                          /usr/sbin/rtadvd ${rtadvd_flags}
Line 633 
Line 606 
         echo -n ' hostapd';             /usr/sbin/hostapd ${hostapd_flags};          echo -n ' hostapd';             /usr/sbin/hostapd ${hostapd_flags};
 fi  fi
   
 # $rwhod is imported from /etc/rc.conf;  
 # if $rwhod == YES, rwhod is run.  
 if [ X"${rwhod}" = X"YES" ]; then  if [ X"${rwhod}" = X"YES" ]; then
         echo -n ' rwhod';               rwhod          echo -n ' rwhod';               rwhod
 fi  fi
Line 644 
Line 615 
         echo -n ' lpd';                 lpd ${lpd_flags}          echo -n ' lpd';                 lpd ${lpd_flags}
 fi  fi
   
 # $sendmail_flags is imported from /etc/rc.conf;  # We call sendmail with a full path so that SIGHUP works.
 # If $sendmail_flags == NO or /etc/mailer.conf doesn't exist, then  # Note that /usr/sbin/sendmail may actually call a
 # sendmail isn't run.  We call sendmail with a full path so that  
 # SIGHUP works.  Note that /usr/sbin/sendmail may actually call a  
 # mailer other than sendmail, depending on /etc/mailer.conf.  # mailer other than sendmail, depending on /etc/mailer.conf.
 if [ X"${sendmail_flags}" != X"NO" -a -s /etc/mailer.conf ]; then  if [ X"${sendmail_flags}" != X"NO" -a -s /etc/mailer.conf ]; then
         echo -n ' sendmail';            ( /usr/sbin/sendmail ${sendmail_flags} >/dev/null 2>&1 & )          echo -n ' sendmail';            ( /usr/sbin/sendmail ${sendmail_flags} >/dev/null 2>&1 & )
Line 691 
Line 660 
         fi          fi
 fi  fi
   
 # $rarpd_flags is imported from /etc/rc.conf;  
 # If $rarpd_flags == NO or /etc/ethers doesn't exist, then  
 # rarpd isn't run.  
 if [ X"${rarpd_flags}" != X"NO" -a -s /etc/ethers ]; then  if [ X"${rarpd_flags}" != X"NO" -a -s /etc/ethers ]; then
         echo -n ' rarpd';               rarpd ${rarpd_flags}          echo -n ' rarpd';               rarpd ${rarpd_flags}
 fi  fi
   
 # $bootparamd_flags is imported from /etc/rc.conf;  
 # If $bootparamd_flags == NO or /etc/bootparams doesn't exist, then  
 # bootparamd isn't run.  
 if [ X"${bootparamd_flags}" != X"NO" -a -s /etc/bootparams ]; then  if [ X"${bootparamd_flags}" != X"NO" -a -s /etc/bootparams ]; then
         echo -n ' rpc.bootparamd';      rpc.bootparamd ${bootparamd_flags}          echo -n ' rpc.bootparamd';      rpc.bootparamd ${bootparamd_flags}
 fi  fi
   
 # $rbootd_flags is imported from /etc/rc.conf;  
 # If $rbootd_flags == NO or /etc/rbootd.conf doesn't exist, then  
 # rbootd isn't run.  
 if [ X"${rbootd_flags}" != X"NO" -a -s /etc/rbootd.conf ]; then  if [ X"${rbootd_flags}" != X"NO" -a -s /etc/rbootd.conf ]; then
         echo -n ' rbootd';              rbootd ${rbootd_flags}          echo -n ' rbootd';              rbootd ${rbootd_flags}
 fi  fi
   
 # $mopd_flags is imported from /etc/rc.conf;  
 # If $mopd_flags == NO or /tftpboot/mop doesn't exist, then  
 # mopd isn't run.  
 if [ X"${mopd_flags}" != X"NO" -a -d /tftpboot/mop ]; then  if [ X"${mopd_flags}" != X"NO" -a -d /tftpboot/mop ]; then
         echo -n ' mopd';                mopd ${mopd_flags}          echo -n ' mopd';                mopd ${mopd_flags}
 fi  fi
Line 742 
Line 699 
   
 echo -n standard daemons:  echo -n standard daemons:
   
 # $apmd_flags is imported from /etc/rc.conf;  
 # don't run daemon if $apmd_flags == NO or /usr/sbin/apmd doesn't exist  
 if [ X"${apmd_flags}" != X"NO" -a -x /usr/sbin/apmd ]; then  if [ X"${apmd_flags}" != X"NO" -a -x /usr/sbin/apmd ]; then
         echo -n ' apmd';        /usr/sbin/apmd ${apmd_flags}          echo -n ' apmd';        /usr/sbin/apmd ${apmd_flags}
 fi  fi
Line 782 
Line 737 
         echo 'starting xdm...';         /usr/X11R6/bin/xdm ${xdm_flags}          echo 'starting xdm...';         /usr/X11R6/bin/xdm ${xdm_flags}
 fi  fi
   
   
 exit 0  exit 0
   

Legend:
Removed from v.1.287  
changed lines
  Added in v.1.288