1833951 Members
1969 Online
110063 Solutions
New Discussion

NTP startup

 
SOLVED
Go to solution
Tom Horan
Frequent Advisor

NTP startup

I have 5 servers (11 and 10.20) running NTP, they are collecting the time from a local server. All is working fine but I have one little problem - How do I get NTP to kick in at bootup, I currently have to start the daemon manually /sbin/init.d/xntpd start .

Any help would be appreciated.

Cheers

Paul
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor
Solution

Re: NTP startup

Hi Paul:

In /etc/rc.config.d/netdaemons set XNTPD=1.

Regards!

...JRF...
Santosh Nair_1
Honored Contributor

Re: NTP startup

If you've set up everything in the startup scripts, i.e. /sbin/init.d/xntpd, then the NTP daemons should startup up at boot time. Just verify that /etc/rc.config.d/netdaemons has the proper values:

export NTPDATE_SERVER=
export XNTPD=1
export XNTPD_ARGS=

-Santosh
Life is what's happening while you're busy making other plans
Robin Wakefield
Honored Contributor

Re: NTP startup

Hi Paul,

Sounds like your rc*.d links are missing. Run the following and see how it compares:

cd /sbin
find *.d -name "*xntpd" | xargs ll
-r-xr-xr-x 1 bin bin 1823 Sep 13 1997 init.d/xntpd
lrwxr-xr-x 1 root sys 18 Jun 10 1996 rc1.d/K340xntpd -> /sbin/init.d/xntpd
lrwxr-xr-x 1 root sys 18 Jun 10 1996 rc2.d/S660xntpd -> /sbin/init.d/xntpd

Also have a look in /etc/rc.log for any problems. If "/sbin/init.d/xntpd start" works, your config file is probably OK.

Rgds, Robin.
Sachin Patel
Honored Contributor

Re: NTP startup

Hi Paul,
edit file /etc/rc.cofig.d/netdaemons

export NTPDATE_SERVER=
export XNTPD=1
export XNTPD_ARGS=

Then
#/sbin/rc2.d/S660xntpd stop
#/sbin/rc2.d/S660xntpd start (If this works then xntpd will start at boot time)

Sachin
Is photography a hobby or another way to spend $
A. Clay Stephenson
Acclaimed Contributor

Re: NTP startup

Normally, if you configure using SAM then that is done for you. However, you can do it manually. If there is already an xntpd script in /sbin/init.d then the process is very easy.
Simply ln -s /sbin/init.d/xntpd /sbin/rc2.d/K660xntpd and ln -s /sbin/init.d/xntpd /sbin/rc1.d/K340xntpd.
These links will start and stop the xntpd daemon automatically.
If you have no xntpd script in /sbin/init.d then simply copy one of the scripts already in /sbin/init.d to xntpd. You then modify the start), start_mesg), stop), and stop_mesg sections to do the appropriate actions. Finally make the links as above and you are good to go.

Clay
If it ain't broke, I can fix that.
Deshpande Prashant
Honored Contributor

Re: NTP startup

Hi
Check the file /etc/rc.cofig.d/netdaemons
for following variable -
export XNTPD=1

The value should be 1 for automatic startup at boot.

Thanks.
Prashant.
Take it as it comes.
Sanjay_6
Honored Contributor

Re: NTP startup

Hi Paul,

Like the others have already told, edit /etc/rc.config.d/netdaemons and modify the line XNTPD=0 to
XNTPD=1

At the next reboot the xntpd daemon should restart on its own.

Hope this helps.

thanks