Re: Launching a NTP server
Gian-Piero wrote:
> I have installed on my PC an Expert mouseClock (Gude elektronik)
> receiving the time radio signal of DCF77 in Germany. It is functioning
> perfectly. My problem is the following: how do I start this service as
> root at boot?
> I have written the following script in a file called ntpd in the
> /etc/init.d folder:
>> #!/bin/bash
>> /usr/local/bin/ntpd
>>
> then I have made it executable:
>> chmod 755 ntpd
> I have seen that this file was copied in /etc/rc.d.
> Then when I launch my system, this service is not started and I get the
> following line in the file /var/log/messages:
>> Jun 21 14:02:01 Piantino-8 ntpd[4219]: ntpd 4.2.4@1.1437 Thu Jun 4
>> 14:04:29 UTC 2009 (1)
>> Jun 21 14:02:01 Piantino-8 ntpd[4219]: ntpd: must be run as root, not
>> uid 1000
> How do I manage to run it as root?
> Thank you in advance for your answer
>
chkconfig
insserv
But why don't you just have the system ntpd use your clock?
Configue it in /etc/ntpd.conf,
/etc/init.d/ntp start
chkconfig -a ntp
I doubt that you need your own ntpd.
Kind regards,
Andreas Stieger
|