diff options
author | B. Watson <yalhcru@gmail.com> | 2022-01-26 15:33:58 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-01-30 08:36:00 +0700 |
commit | d17bca972e018b295b8f887af0c3967ba99d4cf5 (patch) | |
tree | ebbe2f9db0d1046ede7433762faed3ba3b892f1d /network/sntpc/sntpc.rst | |
parent | b5e76f14590bd2128436521f7c44a1100e6fb02a (diff) |
network/sntpc: Added (simple NTP client).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/sntpc/sntpc.rst')
-rw-r--r-- | network/sntpc/sntpc.rst | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/network/sntpc/sntpc.rst b/network/sntpc/sntpc.rst new file mode 100644 index 0000000000000..b040bb7da6dc8 --- /dev/null +++ b/network/sntpc/sntpc.rst @@ -0,0 +1,87 @@ +.. RST source for sntpc(1) man page. Convert with: +.. rst2man.py sntpc.rst > sntpc.1 +.. rst2man.py comes from the SBo development/docutils package. + +.. |version| replace:: 20181113_1ca1d00 +.. |date| date:: + +===== +sntpc +===== + +---------------------------- +Network Time Protocol client +---------------------------- + +:Manual section: 1 +:Manual group: SlackBuilds.org +:Date: |date| +:Version: |version| + +SYNOPSIS +======== + +sntpc [**-bhnv**] [**-p** *port*] [**-s** *server*] [**-t** *threshold*] + +DESCRIPTION +=========== + +**sntpc** queries an NTP server for the current time, and sets the +local clock to the time reported by the server. It's a standalone +binary, with no config file and no dependency on the *ntp* package. + +**sntpc** does not run as a daemon like **ntpd** does. To keep +the time in sync, you can run **sntpc** from root's **crontab**\(1) +every 30 minutes (or however often it's necessary). + +**sntpc** requires root access to actually set the local clock, +although it can be run with **-n** by non-privileged users (e.g. with +**-v** to simply check the local time against the server's time). + +OPTIONS +======= + +-b + Allow time shift backwards (default: forward only). + +-h + Show built-in help message. + +-n + No set time (dry run). + +-p + Set server port number (default: 123). + +-s + Set server name or IPv4 address (default: pool.ntp.org). + +-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. + +-v + Verbose (default: silent) + +COPYRIGHT +========= + +See the file /usr/doc/sntpc-|version|/LICENSE.txt for license information. + +AUTHORS +======= + +sntpc was written by Greg Hewgill. + +This man page written for the SlackBuilds.org project +by B. Watson, and is licensed under the WTFPL. + +SEE ALSO +======== + +**ntpd**\(1) + +https://www.ntp.org + +The sntpc homepage: https://github.com/ghewgill/sntpc |