Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105725 - ntp-client starting before net.eth0
Summary: ntp-client starting before net.eth0
Status: RESOLVED DUPLICATE of bug 86781
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-12 12:45 UTC by Daevid Vincent
Modified: 2005-09-12 13:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daevid Vincent 2005-09-12 12:45:41 UTC
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  


Reproducible: Always
Steps to Reproduce:
1. install ifplugd
2. install ntp-client
3. set to default rc run levels
4. plug in network cable
5. boot
Actual Results:  
ntp-client won't find 'pool' timeserver b/c ifplugd hasn't started yet, or at 
least the network isn't up yet

Expected Results:  
ifplugd start as early as possible to get an IP address.

if no cable plugged in, then don't start ntp-client
if cable is plugged in, then wait till ip and continue

I believe i'm running the RC in parallel, but i don't feel this should be a 
factor, as ntp-client should be smart enough to wait for networking. other 
init.d scripts do.

the work around is to run '/etc/init.d/ntp-client restart', but that's 
annoying.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-09-12 13:15:29 UTC

*** This bug has been marked as a duplicate of 86781 ***