LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Disabling ntpd service (https://www.linuxquestions.org/questions/linux-newbie-8/disabling-ntpd-service-706580/)

v_fone 02-22-2009 05:36 AM

Disabling ntpd service
 
Hello everyone.

I have a Red Hat 5.2 and when the system start, it remains a lot of time with the ntp synchronization. If I log in the system in single user mode, Could I disable the ntpd service? Or there are other possibilities?
Thanks

alan_ri 02-22-2009 05:44 AM

Code:

/sbin/chkconfig ntpd off
should do.

unSpawn 02-22-2009 06:17 AM

Quote:

Originally Posted by v_fone (Post 3453078)
Or there are other possibilities?

Does it throw any errors? What servers does it (try to) sync with ('ntpq -p | grep -e "^[\+|\*]"')?

repo 02-22-2009 06:24 AM

doesn't /etc/init.d/ntpd has this code:

Code:

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

if [ -f /etc/sysconfig/ntpd ];then
        . /etc/sysconfig/ntpd
fi


Then you can start
/etc/init.d/ntpd
when the connection is up

v_fone 02-22-2009 06:40 AM

My problem is that I cant access to the login console and I cant enter on the system because ntpd services tries to synchronize (and it's impossible to do because is doesnt have internet connection). Due to this fact I thought to enter on the system as single user, and then disable the service, it's a good solution?
Thanks a lot!

repo 02-22-2009 06:42 AM

what happens when you press CTRL-C or CTRL-X?
when it stops at ntpd

v_fone 02-22-2009 07:52 AM

Thanks for your answers.
I think that I dont explain me so well.
The problem is, in graphical environment, when the system is starting and loading the modules ( I mean, when I turn on the machine) appears (more or less)
mounting file system --> ok
Bring up eth0 --> ok
Starting ntpd services --> And then it waits to synchronize and the minutes goes away and the system looks like locked

I want to disabled the service but I cant do on a normal way because it remains at this point.
Then, do you think If I enter on single user mode and use chkconfig everithing will be ok and the ntpd service appears no more?

Thanks and sorry for my poor english

alan_ri 02-22-2009 07:56 AM

Quote:

Originally Posted by v_fone (Post 3453166)
Then, do you think If I enter on single user mode and use chkconfig everithing will be ok and the ntpd service not appear no more?

Yes.

repo 02-22-2009 10:14 AM

Starting ntpd services --> And then it waits to synchronize and the minutes goes away and the system looks like locked

here you can press CTRL-C or CTRL-X
then it will continue loading.
Then you can disable or remove ntpd


All times are GMT -5. The time now is 02:52 PM.