Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Our application runs on ubuntu 12.04 precise. On this server, we have both ntpdate and ntp. How to enable and disable NTP service on-demand? I tried 'sudo update-rc.d -f ntp remove/default' and 'sudo update-rc.d ntp enable/disable' commands, but when I reboot server the ntp service starts running! I suspect ntpdate starting ntp service on reboot. I removed ntpdate package from one of my experimental server- then ntp didn't start on reboot after issuing command 'update-rc.d ntp disable'. Is there a way to control this? or is there way to permanently disable ntpdate?

Thanks.

share|improve this question
add comment

1 Answer 1

sudo /etc/init.d/ntp stop

to Prevent it from starting at boot

sudo update-rc.d -f ntp remove

or try

/sbin/chkconfig ntpd off

share|improve this answer
    
Babin, I tried update-rc.d command but still ntp server is starting on reboot. Once I removed ntpdate package from my server(experiment), then ntp is not starting on reboot. –  ntphelp Aug 6 '13 at 4:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.