You are not logged in.

#1 2011-07-26 18:38:38

Muf
Member
Registered: 2011-07-26
Posts: 10

ntp problem

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

#2 2011-07-26 19:31:30

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: ntp problem

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?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2011-07-27 00:02:28

Muf
Member
Registered: 2011-07-26
Posts: 10

Re: ntp problem

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

#4 2011-07-27 00:40:51

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: ntp problem

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?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2011-07-27 11:13:11

Muf
Member
Registered: 2011-07-26
Posts: 10

Re: ntp problem

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

Board footer

Powered by FluxBB