Author

Topic: how to fix network time protocol daemon ( NTPD ) ERROR (Read 1347 times)

newbie
Activity: 8
Merit: 0
Please help me.

Fri Mar  7 20:26:33 2014 daemon.info sysinit: ntpd: resolved peer 0.openwrt.pool.ntp.org to 203.185.69.60
Fri Mar  7 20:26:33 2014 daemon.info sysinit: ntpd: sent query to 203.185.69.60
Fri Mar  7 20:26:33 2014 daemon.info sysinit: ntpd: reply from 203.185.69.60: reach 0x01 offset -7.486008 delay 15.006532 status 0x24 strat 1 refid 0x50505300 rootdelay 0.000000
Fri Mar  7 20:26:33 2014 daemon.info sysinit: Alarm clock
Fri Mar  7 20:26:33 2014 daemon.info sysinit: ntpd: resolved peer 3.openwrt.pool.ntp.org to 203.158.111.11
Fri Mar  7 20:26:33 2014 daemon.info sysinit: ntpd: sent query to 203.158.111.11
Fri Mar  7 20:26:48 2014 daemon.info sysinit: ntpd: resolved peer 2.openwrt.pool.ntp.org to 203.158.118.2
Fri Mar  7 20:26:48 2014 daemon.info sysinit: ntpd: sent query to 203.158.118.2
Fri Mar  7 20:26:48 2014 daemon.info sysinit: ntpd: resolved peer 1.openwrt.pool.ntp.org to 203.185.69.60
Fri Mar  7 20:26:48 2014 daemon.info sysinit: ntpd: sent query to 203.185.69.60
Fri Mar  7 20:26:48 2014 daemon.info sysinit: ntpd: resolved peer 0.openwrt.pool.ntp.org to 203.158.118.2
Fri Mar  7 20:26:48 2014 daemon.info sysinit: ntpd: sent query to 203.158.118.2
Fri Mar  7 20:26:48 2014 daemon.info sysinit: ntpd: reply from 203.158.111.11: reach 0x01 offset -7.522214 delay 15.078239 status 0x24 strat 2 refid 0xcbb9453c rootdelay 0.004685
Fri Mar  7 20:26:48 2014 daemon.info sysinit: ntpd: reply from 203.158.118.2: reach 0x01 offset -0.003117 delay 0.042517 status 0x24 strat 2 refid 0xcbb9453c rootdelay 0.006317
Fri Mar  7 20:26:48 2014 daemon.info sysinit: ntpd: reply from 203.185.69.60: reach 0x01 offset -0.002515 delay 0.039494 status 0x24 strat 1 refid 0x50505300 rootdelay 0.000000
Fri Mar  7 20:26:48 2014 daemon.info sysinit: Alarm clock
Fri Mar  7 20:26:48 2014 daemon.info sysinit: ntpd: resolved peer 3.openwrt.pool.ntp.org to 203.158.118.2
Fri Mar  7 20:26:48 2014 daemon.info sysinit: ntpd: sent query to 203.158.118.2
Fri Mar  7 20:27:01 2014 cron.info crond[577]: crond: user root: process already running: /usr/bin/cgminer-monitor

I read FAQ . but i don,t understand .

STEP 1 : Modify/etc/init.d/cgminer 

cnt=0
 if [ ! -f /tmp/cgminer-ntpd-done ]; then                               
               while [ "$NTPD_RET" != "0" ]; do                               
                       ntpd -d -n -q -N \                                     
                           -p 0.openwrt.pool.ntp.org \                       
                           -p 1.openwrt.pool.ntp.org \                       
                           -p 2.openwrt.pool.ntp.org \                       
                           -p 3.openwrt.pool.ntp.org                         
                               cnt=$ (($cnt+1))
                               if [ $cnt -gt 2 ];then
                                        echo cnt
                                        break
                              fi
                                                                             
                       NTPD_RET=$?                                           
               done                                                           
                                                                             
               touch /tmp/cgminer-ntpd-done                                   
       fi

STEP 2: Disable NTPD client for linux

STEP 3: Re-power antminer

Please explain me step by step.

thankyou so much.
Jump to: