diff -up ypbind-mt-1.37.1/man/ypbind.8.helpman ypbind-mt-1.37.1/man/ypbind.8 --- ypbind-mt-1.37.1/man/ypbind.8.helpman 2013-08-19 14:54:57.322653921 +0200 +++ ypbind-mt-1.37.1/man/ypbind.8 2013-08-19 14:54:57.325653921 +0200 @@ -31,9 +31,11 @@ ypbind \- NIS binding process .SH "SYNOPSIS" .HP \w'\fBypbind\fR\ 'u -\fBypbind\fR [\-c] [\-d | \-debug] [\-verbose] [\-n | \-forground] [\-broadcast] [\-broken\-server] [\-ypset] [\-ypsetme] [\-no\-ping] [\-f\ \fIconfigfile\fR] [\-local\-only] [\-ping\-interval\ \fIping\-interval\fR] [\-rebind\-interval] [\-no\-dbus] +\fBypbind\fR [\-broadcast\ |\ \-ypset\ |\ \-ypsetme] [\-c] [\-f\ \fIconfigfile\fR] [\-no\-ping] [\-broken\-server] [\-local\-only] [\-i\ |\ \-ping\-interval\ \fIping\-interval\fR] [\-r\ |\ \-rebind\-interval\ \fIrebind\-interval\fR] [\-d\ |\ \-debug] [\-v\ |\ \-verbose] [\-n\ |\ \-foreground] [\-p\ \fIport\fR] [\-log\ \fIlog\-options\fR] [\-no\-dbus] .HP \w'\fBypbind\fR\ 'u \fBypbind\fR \-\-version +.HP \w'\fBypbind\fR\ 'u +\fBypbind\fR \-\-help .SH "DESCRIPTION" .PP \fBypbind\fR @@ -169,7 +171,7 @@ on the local machine is allowed to chang only checks if the config file has syntax errors and exits\&. .RE .PP -\fB\-debug\fR +\fB\-d, \-debug\fR .RS 4 starts \fBypbind\fR @@ -178,13 +180,13 @@ in debug mode\&. will not put itself into background, and error messages and debug output are written to standard error\&. .RE .PP -\fB\-foreground\fR +\fB\-n, \-foreground\fR .RS 4 \fBypbind\fR will not put itself into backgroun\&. .RE .PP -\fB\-verbose\fR +\fB\-v, \-verbose\fR .RS 4 Causes \fBypbind\fR @@ -193,7 +195,7 @@ to syslog(2) any and all changes in the .PP \fB\-broken\-server\fR .RS 4 -lets +Lets \fBypbind\fR accept answers from servers running on an illegal port number\&. This should usually be avoided, but is required by some \fBypserv\fR(8) @@ -223,20 +225,36 @@ and not will only bind to the loopback device and is not reachable from a remote network\&. .RE .PP -\fB\-ping\-interval\fR ping\-interval +\fB\-p port\fR +.RS 4 +Lets +\fBypbind\fR +listen on a specified +\fBport\fR +number, rather than asking portmapper to assing a port for it\&. +.RE +.PP +\fB\-i, \-ping\-interval\fR ping\-interval .RS 4 The default value for \fBypbind\fR to check, if a NIS server is still reachable, is 20 seconds\&. With this options another frequency in seconds can be specified\&. .RE .PP -\fB\-rebind\-interval\fR +\fB\-r, \-rebind\-interval\fR rebind\-interval .RS 4 The default value for \fBypbind\fR to search for the fastest NIS server is 900 seconds (15 minutes)\&. With this options another frequency in seconds can be specified\&. .RE .PP +\fB\-log\fR log\-options +.RS 4 +Allows to log special events\&. +\fBlog\-options\fR +is a logical sum of values for particular events \- 1 for logging rpc calls, 2 for logging broken server calls, 4 for logging server changes\&. +.RE +.PP \fB\-no\-dbus\fR .RS 4 Disables DBUS support if compiled in\&. diff -up ypbind-mt-1.37.1/src/ypbind-mt.c.helpman ypbind-mt-1.37.1/src/ypbind-mt.c --- ypbind-mt-1.37.1/src/ypbind-mt.c.helpman 2013-04-09 16:03:47.000000000 +0200 +++ ypbind-mt-1.37.1/src/ypbind-mt.c 2013-08-19 14:54:57.326653921 +0200 @@ -513,12 +513,17 @@ usage (int ret) output = stdout; fputs (_("Usage:\n"), output); - fputs (_("\typbind [-broadcast | -ypset | -ypsetme] [-f configfile]\n\t [-no-ping] [-broken-server] [-local-only] [-i ping-interval]\n\t [-r rebind-interval] [-debug] [-verbose] [-n | -foreground]\n"), output); + fputs ("\typbind [-broadcast | -ypset | -ypsetme] [-f configfile] [-no-ping]\n" + "\t [-broken-server] [-local-only] [-i | -ping-interval ping-interval]\n" + "\t [-r | -rebind-interval rebind-interval] [-d | -debug] [-v | -verbose]\n" + "\t [-n | -foreground] [-p port] [-log log-options]", output); #ifdef USE_DBUS_NM - fputs (_("\t [-no-dbus]\n"), output); + fputs (" [-no-dbus]", output); #endif - fputs (_("\typbind -c [-f configfile]\n"), output); - fputs (_("\typbind --version\n"), output); + fputs ("\n", output); + fputs ("\typbind -c [-f configfile]\n", output); + fputs ("\typbind --version\n", output); + fputs ("\typbind --help\n", output); exit (ret); }