diff options
author | B. Watson <yalhcru@gmail.com> | 2022-01-28 11:59:09 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-01-30 08:36:01 +0700 |
commit | 2cd8c26b45fc16936767281e7cbced1750c260b7 (patch) | |
tree | 89cf59576aa0ea2dd04929ab920bfd25ca2a424f /network/sntpc/sntpc.8 | |
parent | 853b2bc1d29b9a35d5f86a6b536a0c1b030c8d84 (diff) |
network/sntpc: Add man page.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/sntpc/sntpc.8')
-rw-r--r-- | network/sntpc/sntpc.8 | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/network/sntpc/sntpc.8 b/network/sntpc/sntpc.8 new file mode 100644 index 000000000000..26c740111528 --- /dev/null +++ b/network/sntpc/sntpc.8 @@ -0,0 +1,98 @@ +.\" Man page generated from reStructuredText. +. +. +.nr rst2man-indent-level 0 +. +.de1 rstReportMargin +\\$1 \\n[an-margin] +level \\n[rst2man-indent-level] +level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] +- +\\n[rst2man-indent0] +\\n[rst2man-indent1] +\\n[rst2man-indent2] +.. +.de1 INDENT +.\" .rstReportMargin pre: +. RS \\$1 +. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] +. nr rst2man-indent-level +1 +.\" .rstReportMargin post: +.. +.de UNINDENT +. RE +.\" indent \\n[an-margin] +.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] +.nr rst2man-indent-level -1 +.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] +.in \\n[rst2man-indent\\n[rst2man-indent-level]]u +.. +.TH "SNTPC" 1 "2022-01-28" "20181113_1ca1d00" "SlackBuilds.org" +.SH NAME +sntpc \- Network Time Protocol client +.\" RST source for sntpc(8) man page. Convert with: +. +.\" rst2man.py sntpc.rst > sntpc.8 +. +.\" rst2man.py comes from the SBo development/docutils package. +. +.SH SYNOPSIS +.sp +sntpc [\fB\-bhnv\fP] [\fB\-p\fP \fIport\fP] [\fB\-s\fP \fIserver\fP] [\fB\-t\fP \fIthreshold\fP] +.SH DESCRIPTION +.sp +\fBsntpc\fP queries an NTP server for the current time, and sets the +local clock to the time reported by the server. It\(aqs a standalone +binary, with no config file and no dependency on the \fIntp\fP package. +.sp +\fBsntpc\fP does not run as a daemon like \fBntpd\fP does. To keep +the time in sync, you can run \fBsntpc\fP from root\(aqs \fBcrontab\fP(1) +every 30 minutes (or however often it\(aqs necessary). +.sp +\fBsntpc\fP requires root access to actually set the local clock, +although it can be run with \fB\-n\fP by non\-privileged users (e.g. with +\fB\-v\fP to simply check the local time against the server\(aqs time). +.SH OPTIONS +.INDENT 0.0 +.TP +.B \-b +Allow time shift backwards (default: forward only). +.TP +.B \-h +Show built\-in help message. +.TP +.B \-n +No set time (dry run). +.TP +.B \-p +Set server port number (default: 123). +.TP +.B \-s +Set server name or IPv4 address (default: pool.ntp.org). +.TP +.B \-t +Set maximum time offset threshold (default: 300 seconds). This can +be set to a ludicrously high value such as 40000000000 (over 1,000 years) +to effectively disable the threshold. +.TP +.B \-v +Verbose (default: silent) +.UNINDENT +.SH COPYRIGHT +.sp +See the file /usr/doc/sntpc\-20181113_1ca1d00/LICENSE.txt for license information. +.SH AUTHORS +.sp +sntpc was written by Greg Hewgill. +.sp +This man page written for the SlackBuilds.org project +by B. Watson, and is licensed under the WTFPL. +.SH SEE ALSO +.sp +\fBntpd\fP(1) +.sp +\fI\%https://www.ntp.org\fP +.sp +The sntpc homepage: \fI\%https://github.com/ghewgill/sntpc\fP +.\" Generated by docutils manpage writer. +. |