What determines the order that things in rc-update (/etc/init.d) start?

I run ifplugd, and I notice that (as the title says), ntp-client is starting
before net.eth0 and therefore can't find the pool.ntp.org site (of course).

/etc/init.d/ntp-client shows

depend()
{
        before cron portmap
        need net
        use dns logger
}

So shouldn't it wait till the network has started and I have an IP address
from ifplugd?

locutus ~ # rc-update show
               acpid | boot                   
           alsasound | boot default           
             anacron |      default           
             apache2 |                        
                apmd |                        
               aumix |      default           
           bluetooth |                        
            bootmisc | boot                   
          bootsplash |                        
             bttrack |                        
             checkfs | boot                   
           checkroot | boot                   
               clock | boot                   
            coldplug |      default           
         consolefont | boot                   
         crypto-loop |                        
               cupsd |                        
                dbus |      default           
             distccd |                        
          domainname |      default           
              esound |                        
                famd |      default           
            gkrellmd |                        
                 gpm |      default           
              hdparm | boot                   
            hostname | boot                   
             hotplug |      default           
                 i8k |      default           
             ifplugd |      default           
               inetd |                        
           ip6tables |                        
            iptables |                        
                irda |                        
             keymaps | boot                   
              kismet |                        
                lisa |      default           
               local |      default nonetwork 
          localmount | boot                   
             modules | boot                   
               mysql |                        
            net.ath0 |                        
            net.eth0 |                        
            net.eth1 |                        
            net.eth2 |                        
              net.lo | boot                   
            net.ppp0 |                        
           net.wlan0 |                        
            netmount |      default           
                nscd |                        
          ntp-client |      default           
                ntpd |                        
             numlock |                        
              pcmcia | boot default           
             portmap |                        
             postfix |      default           
             pwcheck |                        
             reslisa |                        
               rgpsp |                        
           rmnologin | boot                   
              rsyncd |                        
               samba |                        
           saslauthd |                        
              serial | boot                   
           shorewall |      default           
               spamd |                        
              splash |                        
                sshd |      default           
              switch |                        
           syslog-ng |      default           
             urandom | boot                   
          vixie-cron |      default           
              vsftpd |                        
             winbind |                        
                wlan |                        
                 xdm |                        
              xinetd |      default  


-- 
gentoo-user@gentoo.org mailing list

Reply via email to