0

For some time now my computer has been very slow to boot. So yesterday I did a systemd-analyze blame, which from what I understand gives you the processes that take the longest to start. So these are the first lines of mine

3min 45.244s ntp.service
     45.277s apt-daily.service
     12.114s dev-sda1.device
      9.200s ModemManager.service
      7.698s NetworkManager.service

So apparently ntp.service is by far taking the longest. I have done some research but I couldn't precisely figure out what it's important for and how I can disable it.

Is it safe for me to disable it? How can I disable it for boot?

muru
  • 197,895
  • 55
  • 485
  • 740
TomCho
  • 364
  • Brother if you don't know what it is or does don't mess with it, better it takes 3mins than your system taking forever or not boot at all! Its called the network time service used to synchronize time on your system. – George Udosen Feb 09 '17 at 16:26
  • I have a backup of my system. Worst case scenario I'll re-install Linux, so I think it's worth the risk. I manually disabled it and nothing really changed, so I'm guessing it's not extremely important. – TomCho Feb 09 '17 at 16:30
  • Does sudo systemctl status ntp[d] return anything? – George Udosen Feb 09 '17 at 16:38
  • @George Yes, a bunch of lines. The most important is probably the one that says unable to bind to wildcard address :: - another process may be running - EXITING. But this might because I manually disabled it a couple of minutes ago. – TomCho Feb 09 '17 at 16:41
  • @George I just re-started ntp and ran status again and the message persists. I have no idea what it means – TomCho Feb 09 '17 at 16:44
  • Restart the system it should correct itself. – George Udosen Feb 09 '17 at 16:47
  • First read https://askubuntu.com/questions/403616/ from three years before this. The important part of the question here is not actually in it, but is buried in a question comment. – JdeBP Feb 02 '18 at 03:31

1 Answers1

0

Network Time Protocol:

NTP- is a protocol which runs over port 123 UDP at Transport Layer and allows computers to synchronize time over networks for an accurate time. While time is passing by, computers internal clocks tend to drift which can lead to inconsistent time issues, especially on servers and clients logs files or if you want to replicate servers resources or databases.

Commands:

  1. Stop:

    sudo systemctl stop ntp
    
  2. Start:

    sudo systemctl start ntp
    
  3. Disable at start-up:

    sudo systemctl disable ntp
    
  4. Enable at start-up:

    sudo systemctl enable ntp
    

Source:

http://www.tecmint.com/install-ntp-server-in-centos/

George Udosen
  • 36,677