---
+* [Backward Incompatible] sntp: -l/--filelog -> -l/--logfile, to be
+ consistent with ntpd.
* libopts/file.c fix from Bruce Korb (arg-type=file).
---
/* Initialize logging system */
init_logging();
- if (HAVE_OPT(FILELOG))
- open_logfile(OPT_ARG(FILELOG));
+ if (HAVE_OPT(LOGFILE))
+ open_logfile(OPT_ARG(LOGFILE));
msyslog(LOG_NOTICE, "Started sntp");
#include copyright.def
prog-name = "sntp";
-prog-title = "standard SNTP program";
-homerc = $HOME, ".";
-argument = 'hostname-or-IP ...';
+prog-title = "standard Simple Network Time Protocol program";
+argument = '[ hostname-or-IP ...]';
+
+#include homerc.def
long-opts;
config-header = "config.h";
-#ifndef __windows__
-rcfile = ".ntprc";
-#else
-rcfile = "ntp.ini";
-#endif
-
environrc;
#include version.def
flags-cant = ipv6;
descrip = "Force IPv4 DNS name resolution";
doc = <<- _EndOfDoc_
- Force DNS resolution of following host names on the command line
+ Force DNS resolution of the following host names on the command line
to the IPv4 namespace.
_EndOfDoc_;
};
flags-cant = ipv4;
descrip = "Force IPv6 DNS name resolution";
doc = <<- _EndOfDoc_
- Force DNS resolution of following host names on the command line
+ Force DNS resolution of the following host names on the command line
to the IPv6 namespace.
_EndOfDoc_;
};
arg-name = "file-name";
descrip = "KoD history filename";
doc = <<- _EndOfDoc_
- Modifies the filename to be used to persist the history of KoD
+ Specifies the filename to be used to persist the history of KoD
responses received from servers. The default is
/var/db/ntp-kod.
_EndOfDoc_;
flag = {
name = syslog;
value = p;
- flags-cant = filelog;
+ flags-cant = logfile;
descrip = "Logging with syslog";
doc = <<- _EndOfDoc_
When this option is set all logging will be done using syslog.
};
flag = {
- name = filelog;
+ name = logfile;
value = l;
arg-type = string;
arg-name = "file-name";