System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

xntpd "broke" and not able to start

 
SOLVED
Go to solution
Highlighted
Advisor

xntpd "broke" and not able to start

Hi all,
I have a problem with xntpd on hpux11.11.
ps -ef | grep xntpd, no result
When i /sbin/init.d/xntpd start, it fails quietly.
E.g.
root#/sbin/init.d/xntpd.bak start
root#ps -ef | grep ntp
ntp not running....

This server has a cluster server B. I copied the binary /sbin/init.d/xntpd over and ran the binary again and got this
root#./xntpd start
EXIT CODE: 126
Using SAM to start returns an error as well.

i figure there's a need to reinstall xntpd. But itrc has ntp only for 11.23?
alternatively, i can copy the xntpd files from the other cluster B to this server. Can you tell me which are the files to copy over?
Or is there another solution?
Thanks in advance for your help.
23 REPLIES 23
Highlighted
Acclaimed Contributor

Re: xntpd "broke" and not able to start

Have you looking into xntpd to see where it is exiting with 126?
Highlighted
Advisor

Re: xntpd "broke" and not able to start

Hi,
i did a search on syslog but no entries on ntp. problem is the exit code 126 doesn't return a good result from google too. And i don't know if ntp has any logs in the OS.

By the way, this started after i set the clock backwards.. The action appeared to have broken things.
Highlighted
Acclaimed Contributor

Re: xntpd "broke" and not able to start

>I did a search on syslog but no entries on ntp.

How about /etc/rc.log?

>this started after I set the clock backwards.

Why? The purpose of ntp is to keep the clock on time.
Highlighted
Advisor

Re: xntpd "broke" and not able to start

Hi,
unfortunately, not too informative also..


Start time synchronization
Output from "/sbin/rc2.d/S660xntpd start":
----------------------------
EXIT CODE: 126
"/sbin/rc2.d/S660xntpd start" FAILED
Highlighted
Advisor

Re: xntpd "broke" and not able to start

The clock was set back due to an applciation problem... That this server has to run slower than another authentication server for users logging in to be successful
Highlighted
Acclaimed Contributor

Re: xntpd "broke" and not able to start

>Output from "/sbin/rc2.d/S660xntpd start":
>EXIT CODE: 126

Take a look at /sbin/rc2.d/S660xntpd and see if you can figure out what was the last command that failed?
Highlighted
Acclaimed Contributor

Re: xntpd "broke" and not able to start

>The clock was set back due to an application problem. That this server has to run slower than another authentication server

Then you probably can't run ntp.
Highlighted
Advisor

Re: xntpd "broke" and not able to start

Hi Dennis,
I'm not sure how to check /sbin/init.d/xntpd
to find out the last command ...

And i don't think xntpd is failing due to the app. The app might fail due to date and time. Still hope to get it working ...
Highlighted
Valued Contributor

Re: xntpd "broke" and not able to start

Hello.

I've searched error codes related to the shell and I found this:

Error Code = 126:
Invoked Command can not execute -> Permission problem or not is an executable command

Can you check permissions?

Regards