On Monday 18 July 2005 20:34, Greg Freemyer wrote:
On 7/18/05, Dylan <dylan@dylan.me.uk> wrote:
Dear List,
I use NIS to distribute /etc/hosts for lan hostname lookup. This works fine for all but one machine. For some reason, ypbind is not running on that machine until after xntpd tries to resolve my gateway's hostname to get initial time sync.
Can I force /etc/init.d/xntpd to wait until ypbind is running? How?
Cheers
The order of the init scripts running is controlled by the links in /etc/init.d/rc3.d, etc.
They are run in alphabetical order.
So S10* is run before S20*, etc.
If you need to re-order some scripts, just rename them appropriately. (Be sure not to change the first letter, the S is for Start and K is for Kill. Only S* and K* links get run at startup/shutdown.
If you do any renaming, I would go into all of the rc?.d directories and do the same renames.
FYI: I don't know how maintainable this solution is, so maybe someone knows a more maintainable solution.
Do a: # chkconfig -d xntpd to remove the existing links edit the /etc/init.d/xntpd and add ypbind to the line that looks like: # Required-Start: $remote_fs $syslog $named then do a: # chkconfig -a xntpd to add the links again. The software will take care of creating all the links and dependancies. You might want to run a diff on the folders to see if you can understand what is different in the files/sequencing of startup. -- Steve Boddy