timesync 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. .TH TIMESYNC 8
  2. .SH NAME
  3. timesync \- synchronize the system clock to a time source
  4. .SH SYNOPSIS
  5. .B aux/timesync
  6. [
  7. .B -a
  8. .I accuracy
  9. ]
  10. [
  11. .B -S
  12. .I stratum
  13. ]
  14. [
  15. .B -s
  16. .I netroot
  17. ]
  18. [
  19. .B -frnDdLil
  20. ]
  21. [
  22. .I timeserver
  23. ]
  24. .SH DESCRIPTION
  25. .B Aux/timesync
  26. synchronizes the system clock to a time source, by default a
  27. file server.
  28. The options are:
  29. .TP
  30. .B -f
  31. synchronize to a file server. If
  32. .I timeserver
  33. is missing, use
  34. .BR /srv/boot .
  35. .TP
  36. .B -r
  37. synchronize to the local real time clock,
  38. .BR #r/rtc .
  39. .TP
  40. .B -L
  41. used with
  42. .B -r
  43. to indicate the real time clock is in
  44. local time rather than GMT. This is
  45. useful on PCs that also run the
  46. Windows OS.
  47. .TP
  48. .B -n
  49. synchronize to an NTP server. If
  50. .I timeserver
  51. is missing, dial the server
  52. .BR udp!$ntp!ntp .
  53. .TP
  54. .B -D
  55. print debugging to standard error
  56. .TP
  57. .B -d
  58. put file containing last determined clock
  59. frequency in directory
  60. .IR dir ,
  61. default
  62. .BR /tmp .
  63. .TP
  64. .B -i
  65. stands for impotent.
  66. .I Timesync
  67. announces what it would do but doesn't do it.
  68. This is useful for tracking alternate time sources.
  69. .TP
  70. .B -a
  71. specifies the
  72. .I accuracy
  73. in nanoseconds to which the
  74. clock should be synchronized. This determines
  75. how often the reference clock is accessed.
  76. .TP
  77. .B -s
  78. causes
  79. .I timesync
  80. to listen for UDP NTP requests on the
  81. network rooted at
  82. .IR netroot .
  83. Up to 4
  84. .B -s
  85. options are allowed.
  86. .TP
  87. .B -S
  88. sets the stratum number to
  89. .IR startum .
  90. .TP
  91. .B -l
  92. turns on logging to
  93. .BR /sys/log/timesync .
  94. .SH FILES
  95. .TF /tmp/ts.<sysname>.<type>.timeserver
  96. .TP
  97. .B /tmp/ts.<sysname>.<type>.timeserver
  98. where the last frequency guess is kept
  99. .TP
  100. .B /sys/log/timesync
  101. log file
  102. .SH SOURCE
  103. .B /sys/src/cmd/aux/timesync.c