LinHES Forums
http://forums.linhes.org/

Is NTP installed by default?
http://forums.linhes.org/viewtopic.php?f=5&t=15335
Page 1 of 1

Author:  gatorback [ Wed May 23, 2007 2:42 pm ]
Post subject:  Is NTP installed by default?

I ran this on R5F1:

Code:
root@mythtvhost:/etc/init.d# update-rc.d ntp defaults
 System startup links for /etc/init.d/ntp already exist.


As a newbie, is it reasonable to conclude that ntp starts up at boot time and does not need to be configured?

Thanks.

Author:  slowtolearn [ Wed May 23, 2007 2:48 pm ]
Post subject: 

You can verify with
Code:
ps -ef | grep ntp

Author:  gatorback [ Wed May 23, 2007 3:04 pm ]
Post subject: 

I tried the command:

Code:
root@mythtvhost:/etc/init.d# ps -ef | grep ntp
ntp       3622     1  0 May22 ?        00:00:01 /usr/sbin/ntpd -p /var/run/ntpd.pid -u 104:105 -g
root     11058     1  0 15:44 ?        00:00:00 ntpd
root     11302     1  0 16:14 ?        00:00:00 ntpd
root     11552     1  0 16:36 ?        00:00:00 ntpd
root     11949 10585  0 17:06 ttyp0    00:00:00 grep ntp


I suspect that what I need to do is reboot the machine when it is not recording something and run the ps command to see if there is a ntpd daemon running after bootup. Please let me know if I am on the right track.

Author:  tjc [ Wed May 23, 2007 6:12 pm ]
Post subject: 

The ntpd is supposed to be set up automatically and shouldn't need any special configuration.

Also, you should only see one process:
Code:
root@black2:~# pgrep -fl ntp
3319 /usr/sbin/ntpd -p /var/run/ntpd.pid -u 104:105 -g

Try killing the extras:
Code:
pkill -9 -u root ntpd

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/