Showing results for 
Search instead for 
Did you mean: 

Can't start ntp client

Go to solution

Can't start ntp client

I'm trying to start xntp daemon, but get the error:
$ /sbin/init.d/xntpd start
/sbin/init.d/xntpd[37]: /etc/rc.config.d/gwlmCtl: not found.

can't get why ntp is depend on Global Workload Manager?

The version of hp-ux
HP-UX HP-UX B.11.31

Tahnks for help
Honored Contributor

Re: Can't start ntp client

Ntp doesn't really depend on gwlm. The error you're seeing is a side effect of the way HP-UX standard init scripts work.

Most HP-UX init scripts include a line like:

. /etc/rc.config

(I bet the line 37 of your /sbin/init.d/xntpd is *exactly* this.)

This line causes /etc/rc.config to be read and executed, which in turn reads *all* the files located in /etc/rc.config.d directory.

If one of the files in /etc/rc.config.d has a typo, almost every init script will produce an error message because of that typo.

By convention, the files in /etc/rc.config.d should contain only comments and variable assignments - but they must still be valid POSIX sh shell scripts.


Re: Can't start ntp client

Thanks Matti for your reply.
You are right line 37 is excatly /etc/rc.config.
Unfortunatly I have no idea what can be wrong with the scripts in /etc/rc.config.d direcotry. This scripts are unchanged after default installation.
So without running that scripts there is no way to start npt client?

James R. Ferguson
Acclaimed Contributor

Re: Can't start ntp client


You probably have a bogus file in the '/etc/rc.config.d' directory. You can keep backup copies of files here _ONLY_ if you follow the rules documented in the '/etc/rc.config' script itself.

You can expose the problem by doing:

# sh -vx /etc/rc.config 2>&1|more

The actual filename will appear as 'fname=' in the traced output with clear syntax errors.

For example:

+ fname=gan
+ [ -f /etc/rc.config.d/gan -a gan != core -a gan = gan ]
+ . /etc/rc.config.d/gan
/etc/rc.config[11]: NAME: not found.

This points to the file '/etc/rc.config.d/gan' as the file that should not be in '/etc/rc.config.d' (or is mis-configued).


Bill Hassell
Honored Contributor

Re: Can't start ntp client

In addition to James's explanation, you can usually find these bogus files like this:

ls -lrt /etc/rc.config.d

The most recently added or changed files are at the bottom of the list.

Bill Hassell, sysadmin

Re: Can't start ntp client

Thanks everybody for help.
I had "buggy"

files in /etc/rc.config.d/ directory. What is wrong with them have no idea. Just remove them from this directory and xntpd started.

Ismail Azad
Esteemed Contributor

Re: Can't start ntp client

Hi alexander,

Yup so I guess your problem is solved... But it seems you have deleted 'pd' as well... a configuration file that is related to distributed printing services...

Ismail Azad
Read, read and read... Then read again until you read "between the lines".....