View previous topic :: View next topic |
Author |
Message |
_Edulix n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Dec 2002 Posts: 68
|
Posted: Wed Apr 23, 2003 4:45 pm Post subject: ntpd at boot starts before net, despite it depends on net |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Useful Idiot Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/2280459994608189b745b5.jpg)
Joined: 30 Aug 2002 Posts: 329 Location: Finland
|
Posted: Wed Apr 23, 2003 6:40 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
_Edulix n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Dec 2002 Posts: 68
|
Posted: Thu Apr 24, 2003 12:26 pm Post subject: I did it, and the problem is still there |
|
|
Hi Useful Idiot!
I've tried to do that, but the net still starts after ntp. Any ideas ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Useful Idiot Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/2280459994608189b745b5.jpg)
Joined: 30 Aug 2002 Posts: 329 Location: Finland
|
Posted: Thu Apr 24, 2003 12:32 pm Post subject: |
|
|
Have you removed ntpd from boot? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
]Trix[ Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/57677723943d6b02a43e5d.jpg)
Joined: 27 Feb 2003 Posts: 184
|
Posted: Fri Apr 25, 2003 4:57 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
_Edulix n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Dec 2002 Posts: 68
|
Posted: Wed Apr 30, 2003 10:27 am Post subject: Fixed |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|