You are not logged in.
Pages: 1
Hi I read about Network Time Protocol daemon on wiki, but I have steel problem, I use Network Manager and I want use ntpd no as a daemon, but use commnad ntpd -qg &.
I think that if I will run this command from rc.local, network connection will be not initialized yet.
I don't know whether I must install package networkmanager-dispatcher-ntpd too and put to /etc/NetworkManager/dispatcher.d/ some script like this
#!/bin/sh
exec /usr/sbin/ntpd -qg &
exit 0
Or how can I do it ? Thx.
Sorry my English is horrible :-))
Offline
Muf, there is no point posting a reply in the discussion about the ntp wiki article.
I have split your question into a separate thread.
On topic :: did you try running it from your .xinitrc?
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
I am sorry, I saw topic about ntp and I wrote it there :-) I tried running it from .xinitrc but ntpd must be run as root :-(
localhost ntpd[1624]: ntpd: must be run as root, not uid 1000
Offline
allow sudo to access ntpd without password for you user and then try again.
but the question is : why do you not want to run it as a DAEMON?
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Thx for reply, I tried it with sudo, but network was not initialized yet. I will run it as daemon. But I have question, must I put ntpd to rc.local between startup DAEMONS when I install script networkmanager-dispatcher-ntpd? I thing that no, bud I am not sure if is it OK :-))
Offline
Pages: 1