0

I managed to run ntpdate at a high priority. My initial thought is to use nice command, like:

nice -n -10 ntpdate -p 8 -u $NTP_TIME_SERVER

However, after checking the nice value of ntpdate command, it stays at -12, regardless of nice -n command.

Did anyone have same experience of modifying priority of ntpdate before? How can I configure ntpdate to make it work at a high priority? Thanks in advance. :-)

Liang Zhao
  • 23
  • 4

1 Answers1

2

Ntpdate is deprecated (see the disclaimer in the man page) and shouldn't be used. You can use ntpd -q to replicate the functionality of ntpdate. It is however better to setup ntpd to run continuously and adjust the system clock appropriately.

Axel Beckert
  • 398
  • 2
  • 17
user9517
  • 114,104
  • 20
  • 206
  • 289