Red HatThis forum is for the discussion of Red Hat Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
On RedHat 7.3, running as a server (no graphical interface), I configured ntp.
I managed to winkle out all I needed to know to get it to work the way I wanted - syncing with official timeservers, providing time service to the rest of my network.
Now I want to get ntp to start when the machine reboots.
I thought I had it figured out, and did the following :
~ changed "-" to "2345" in /etc/rc.d/init.d/ntpd (inittab says id:3:initdefault: )
~ did /sbin/chkconfig --add ntpd
(response to that last command was right back to prompt. there was no error messages. there was also no success message...)
Then I rebooted. Did ps -ax | grep ntp. That returned nothing.
When I do /sbin/chkconfig --list ntpd, I get "off" for all levels.
Just now, reading a previous post about getting mysql to auto-start, I looked at the entries in rc2-5.d. In all those directories, the link to /etc/rc.d/init.d/ntpd is named K74ntpd.
I think I know that the linkname must start with S for the service to be started. I thought that chkconfig, as manager of the links, would cause that to be the case.
So, 2 questions :
~ Why did "/sbin/chkconfig --add ntpd" not work?
~ Is it safe to manually rename the current link to S74ntpd? (This server is a vital link in our DNS system. I don't want to thrash about thoughtlessly...)
I'd taken note of the on|off|reset syntax in the man page, but got side-tracked with the --add switch...
I see now, the "2345" setting in the ntpd init file in init.d gets read when you do chkconfig <service> reset. Reading that setting writes the files in the rc2-5.d directories.
I didn't actually try "on" - still had the idea that was temporary, lost when the sytem re-started... I guess what actually happens is it writes the S and/or K file in the specified (or current level, if not specified?) runlevel directory...