Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ntpd at boot starts before net, despite it depends on net
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
_Edulix
n00b
n00b


Joined: 09 Dec 2002
Posts: 68

PostPosted: Wed Apr 23, 2003 4:45 pm    Post subject: ntpd at boot starts before net, despite it depends on net Reply with quote

Hi all!

Problem

I merged ntp, then I edited properly /etc/conf.d/ntpd, and finally I did a rc-update add ntpd boot.

Now I rebooted and noticed that ntpd starts before the net (from net.eth0 I connect to internet, through a proxy), so obiously, ntpd can't connect to the ntp server!

Information

All is well configured at first (and second) sight; I've tried to start the ntpd service and it seems to function:

Code:

(shell)# su -
password:
(shell - root)# /etc/init.d/ntpd restart
 * Stopping ntpd...                                                       [ ok ]
 * Initializing clock via ntpdate...                                      [ ok ]
 * Starting ntpd...                                                       [ ok ]
(shell - root)# ntpdate -b -u gong.uv.es # This is the server that is in /etc/conf.d/ntpd
23 Apr 19:32:38 ntpdate[3821]: step time server 147.156.1.1 offset 0.345073 sec


And in my /etc/init.d/ntpd I have in depend "need net":

Code:

(shell)# nano -w /etc/init.d/netpd
[...]
depend() {
        need net
        use dns logger
}
[...]


Someone knows something that could help ? If so, please post it!


Thanks for your time,
Edulix.

-------------------------------------------------------------------------------------

"The difference between 0 and 1/infinite is the different between exist and not exist" - (mine, 23/04/03)
Back to top
View user's profile Send private message
Useful Idiot
Guru
Guru


Joined: 30 Aug 2002
Posts: 329
Location: Finland

PostPosted: Wed Apr 23, 2003 6:40 pm    Post subject: Reply with quote

The problem is that net is started at runlevel default wich becomes after runlevel boot. To solve this just add ntpd to default instead of boot.
Code:
# rc-update add ntpd default
Back to top
View user's profile Send private message
_Edulix
n00b
n00b


Joined: 09 Dec 2002
Posts: 68

PostPosted: Thu Apr 24, 2003 12:26 pm    Post subject: I did it, and the problem is still there Reply with quote

Hi Useful Idiot!

I've tried to do that, but the net still starts after ntp. Any ideas ?
Back to top
View user's profile Send private message
Useful Idiot
Guru
Guru


Joined: 30 Aug 2002
Posts: 329
Location: Finland

PostPosted: Thu Apr 24, 2003 12:32 pm    Post subject: Reply with quote

Have you removed ntpd from boot?
Back to top
View user's profile Send private message
]Trix[
Apprentice
Apprentice


Joined: 27 Feb 2003
Posts: 184

PostPosted: Fri Apr 25, 2003 4:57 pm    Post subject: Reply with quote

I have solved this problem using local.start
I have just add it there and the problem is solved. Also remove it from runlevels.
Back to top
View user's profile Send private message
_Edulix
n00b
n00b


Joined: 09 Dec 2002
Posts: 68

PostPosted: Wed Apr 30, 2003 10:27 am    Post subject: Fixed Reply with quote

Hi, ]Trix[ you were right, thanks !

PD: I apologise for be so late In my answer, I were so ill that I couldn't use the pc. Imagine !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum