You are not logged in.

#1 2004-05-10 06:04:19

jak
Member
From: Charlotte, NC, USA
Registered: 2004-04-08
Posts: 84

ntp priority

Ntp being what it is, it should have the highest priority. It consumes very little CPU, but when it needs to run, it needs to run NOW. I made a little patch for the start script which gives high priority (RT priority on 2.6.5 kernel) to ntp:

diff -urN local/daemons/ntp/ntpd temp/daemons/ntp/ntpd
--- local/daemons/ntp/ntpd    2004-04-27 15:54:49.000000000 -0400
+++ temp/daemons/ntp/ntpd    2004-05-10 01:32:47.264337839 -0400
@@ -8,7 +8,7 @@
   start)
     stat_busy "Starting NTP Daemon"
     if [ -z "$PID" ]; then 
-       /usr/bin/ntpd &
+       /usr/bin/ntpd -N &
     fi
     if [ ! -z "$PID" -o $? -gt 0 ]; then
       stat_fail

smile


The sturgeon general says don't smoke fish

Offline

Board footer

Powered by FluxBB