[ntp:questions] Re: restarting ntpd automatically after reboot in Linux

Ulrich Windl Ulrich.Windl at RZ.Uni-Regensburg.DE
Fri Sep 5 11:30:11 UTC 2003


ryandrk at hotmail.com (Drk Ryan) writes:

> What is the Linux command to get ntpd to restart automatically after
> a reboot?

The command is still "ntpd", but you probably wanted to ask "where
should the command be put so that it's started automatically during
boot, and preferrably after the network has been set up", right?

Write some script that executes ntpd. The add some startup and
shutdown links to start (and stop) ntpd. For SuSE Linux see "man
insserv", I don't know for RedHat...

BTW: Most Linux distributions come with some NTP package; just modify
the scripts (rpm -ql xntp #for SuSE Linux)...

Regards,
Ulrich

> 
> Maybe the answer can also be put here:
> 
> http://twiki.ntp.org/bin/view/NTP/GettingStarted#Step_3_Set_the_clock_correctly_o



More information about the questions mailing list