Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/examples/var_service/ntpd/ntp.script
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/examples/var_service/ntpd/ntp.script
r2725 r3621 11 11 dt=`date '+%Y-%m-%d %H:%M:%S'` 12 12 13 echo "`tail -n 199 -- "$0.log" 2>/dev/null`" >"$0.log.$$" 14 15 if test x"$1" = x"unsync" \ 16 ; then 17 # No replies for our NTP requests were seen for some time. 18 # 19 # Among more mundate cases like network outages, this happens 20 # if we ran for a LONG time (days) and ntp server's IP has changed. 21 # ntpd has no code to re-resolve peers' addresses to IPs, 22 # we need to help it: 23 # 24 echo "$dt: $1"\ 25 "syncronization lost, restarting ntpd"\ 26 >>"$0.log.$$" 27 mv -- "$0.log.$$" "$0.log" 28 kill $PPID 29 exit 30 fi 31 13 32 if test x"$stratum" != x"" \ 14 33 && test x"$poll_interval" != x"" \ … … 16 35 && test 128 -le "$poll_interval" \ 17 36 ; then 18 echo "`tail -n 199 -- "$0.log" 2>/dev/null`" >"$0.log.$$"19 37 echo "$dt: $1"\ 20 38 "freq_drift_ppm=$freq_drift_ppm"\ … … 28 46 fi 29 47 30 echo "`tail -n 199 -- "$0.log" 2>/dev/null`" >"$0.log.$$"31 48 echo "$dt: $1"\ 32 49 "freq_drift_ppm=$freq_drift_ppm"\
Note:
See TracChangeset
for help on using the changeset viewer.