فهرست منبع

ntpdate(8) is deprecated and is going to be retired from the distribution

Christoph Schug 18 سال پیش
والد
کامیت
7937fc651d
3فایلهای تغییر یافته به همراه6 افزوده شده و 8 حذف شده
  1. 4 4
      ntp/ntp.conf
  2. 1 1
      ntp/ntp.spec
  3. 1 3
      ntp/rc.ntp

+ 4 - 4
ntp/ntp.conf

@@ -10,10 +10,10 @@ statsdir   @l_prefix@/var/ntp/ntpd.stat/
 
 #   list of NTP peers
 #   (see http://www.pool.ntp.org/)
-server     pool.ntp.org
-server     pool.ntp.org
-server     pool.ntp.org
-server     pool.ntp.org
+server     pool.ntp.org iburst
+server     pool.ntp.org iburst
+server     pool.ntp.org iburst
+server     pool.ntp.org iburst
 
 #   local operation only
 restrict default ignore

+ 1 - 1
ntp/ntp.spec

@@ -38,7 +38,7 @@ Class:        CORE
 Group:        Network
 License:      BSD-style
 Version:      %{V_major}.%{V_minor}.%{V_micro}
-Release:      20070720
+Release:      20070723
 
 #   package options
 %option       with_fsl     yes

+ 1 - 3
ntp/rc.ntp

@@ -19,9 +19,7 @@
     }
     ntp_once () {
         [ ".$1" != . ] && sleep $1
-        @l_prefix@/bin/ntpdate -u -b \
-            `grep "^server" @l_prefix@/etc/ntp/ntp.conf |\
-             awk '{ printf(" %s", $2); }'` || true
+        @l_prefix@/bin/ntpd -q -g
     }
 
 %status -u @l_susr@ -o