1834586 Members
3624 Online
110069 Solutions
New Discussion

Re: auto startup of ntpd

 
kholikt
Super Advisor

auto startup of ntpd

Each time the server startup or restart I wish to have the /usr/local/bin/ntpd run automatically.

How and where can I modify this?
abc
3 REPLIES 3
Bill Hassell
Honored Contributor

Re: auto startup of ntpd

All startup scripts are setup in 3 directories: /etc/rc.config.d (for settings), /sbin/init.d (the actual start/stop script location) and /etc/rc1.d (rc2.d, rc3.d, etc) which are sequencing links. Read the white paper in /usr/share/doc about start-stop scripts.

If you are starting NTP (network time protocol) this is already available in 10.xx versions of HP-UX, along with the scripts to start/stop the service.


Bill Hassell, sysadmin
Printaporn_1
Esteemed Contributor

Re: auto startup of ntpd

Hi,

The ntpd that come with OS is /usr/sbin/xntpd
you can easy startup by export XNTPD=1 in /etc/rc.config.d/netdaemons

but before this so some configuration in /etc/ntp.conf

in your case is not xntpd from OS then you have to
create start script in /sbin/init.d and make link to /sbin/rc.../

but I don't see the reason for using other ntpd that not from OS.

Regards,
enjoy any little thing in my life
Vincenzo Restuccia
Honored Contributor

Re: auto startup of ntpd

Set the environment variable XNTPD to 1 in the file /etc/rc.config.d/netdaemons. This causes xntpd to start automatically whenever the system is booted.