August 28, 2014, 07:00:34 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
Author Topic: How to run ntpd automatically  (Read 115 times)
Posts: 2

« on: August 22, 2014, 06:24:17 pm »

I want ntpd to be started when the computer boots, but I don't know how. I want the time to always be correct on the computer. I found a possible solution in but I couldn't find a ntpd script file on the page referred to in the post: I've already set up the ntp.conf file. If it's something that can be managed with vasm, then I wonder why VL doesn't install a script in /etc/rc.d/init.d or put one in /etc/rc.d/init.d/sample. The file /etc/rc.d/rc.ntpd exists, but I don't know what that does because ntpd is not running when the system is up. I have been able to run it manually though. I'm using VL 7 standard.
Posts: 1847

« Reply #1 on: August 22, 2014, 07:28:29 pm »

Open a terminal.

The su to root and type: ls -la /etc/rc.d/rc.ntpd

The output will look like this:
-rw-r--r-- 1 root root 804 Jul  4  2012 /etc/rc.d/rc.ntpd

If the output looks like that you need to make it executable.

Now type:
chmod +x /etc/rc.d/rc.ntpd

Then check with the first command.

It should look like this:
-rwxr-xr-x  1 root root 804 Jul  4  2012 /etc/rc.d/rc.ntpd

If you want the service to start without needing to restart type:

That will start that service.

Now when you restart the system i will start automatically.

Please note that there is a way using a GUI to do this. My method
imo is easier.



Posts: 525

move the needle

« Reply #2 on: August 22, 2014, 09:30:35 pm »

If that doesn't work for you,
cp /etc/rc.d/rc.ntpd /etc/rc.d/init.d/ntpd
and manage it with vasm>service>srvset.

And you're right. It's either an error in the ntp package or in the init scripts. Nice find Smiley

Note: This is for VL 7.0. 7.1's ntp package has errors presently, and vasm-legacy can't handle what's changed in services yet.
« Last Edit: August 22, 2014, 09:35:10 pm by roarde » Logged

VL STD 7.1 RC2.2.2, icewmvmods
Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!