Blame SOURCES/ypbind-2.5-helpman.patch

278b87
diff -up ypbind-mt-2.5/man/ypbind.8.xml.helpman ypbind-mt-2.5/man/ypbind.8.xml
278b87
--- ypbind-mt-2.5/man/ypbind.8.xml.helpman	2018-06-04 15:30:38.000000000 +0200
278b87
+++ ypbind-mt-2.5/man/ypbind.8.xml	2018-06-07 16:16:56.967024495 +0200
278b87
@@ -39,21 +39,33 @@
278b87
   <refsynopsisdiv id='synopsis'>
278b87
   <cmdsynopsis>
278b87
     <command>ypbind</command>
278b87
-      <arg choice='opt'>-c </arg>
278b87
-      <group choice='opt'><arg choice='plain'>-d </arg><arg choice='plain'>-debug </arg></group>
278b87
-      <arg choice='opt'>-verbose </arg>
278b87
-      <group choice='opt'><arg choice='plain'>-n </arg><arg choice='plain'>-forground </arg></group>
278b87
-      <arg choice='opt'>-broadcast </arg>
278b87
-      <arg choice='opt'>-broken-server </arg>
278b87
-      <arg choice='opt'>-ypset </arg>
278b87
-      <arg choice='opt'>-ypsetme </arg>
278b87
-      <arg choice='opt'>-no-ping </arg>
278b87
+      <group choice='opt'>
278b87
+          <arg choice='plain'>-broadcast </arg>
278b87
+          <arg choice='plain'>-ypset </arg>
278b87
+          <arg choice='plain'>-ypsetme </arg>
278b87
+      </group>
278b87
       <arg choice='opt'>-f <replaceable>configfile</replaceable></arg>
278b87
+      <arg choice='opt'>-no-ping </arg>
278b87
+      <arg choice='opt'>-broken-server </arg>
278b87
       <arg choice='opt'>-local-only </arg>
278b87
-      <arg choice='opt'>-ping-interval <replaceable>ping-interval</replaceable></arg>
278b87
+
278b87
+      <group choice='opt'>
278b87
+          <arg choice='plain'>-ping-interval <replaceable>ping-interval</replaceable></arg>
278b87
+          <arg choice='plain'>-i <replaceable>ping-interval</replaceable></arg>
278b87
+      </group>
278b87
+
278b87
+      <group choice='opt'><arg choice='plain'>-d </arg><arg choice='plain'>-debug </arg></group>
278b87
+      <group choice='opt'><arg choice='plain'>-v </arg><arg choice='plain'>-verbose </arg></group>
278b87
+      <group choice='opt'><arg choice='plain'>-n </arg><arg choice='plain'>-foreground </arg></group>
278b87
+      <arg choice='opt'>-p <replaceable>port</replaceable></arg>
278b87
   </cmdsynopsis>
278b87
   <cmdsynopsis>
278b87
     <command>ypbind</command>
278b87
+      <arg choice='plain'>-c </arg>
278b87
+      <arg choice='opt'>-f <replaceable>configfile</replaceable></arg>
278b87
+    </cmdsynopsis>
278b87
+  <cmdsynopsis>
278b87
+    <command>ypbind</command>
278b87
       <arg choice='plain'>--version </arg>
278b87
     </cmdsynopsis>
278b87
   </refsynopsisdiv>
278b87
@@ -88,6 +100,8 @@
278b87
 
278b87
     <para>Unless the option
278b87
 <option>-debug</option>
278b87
+or
278b87
+<option>-foreground</option>
278b87
 is used, ypbind detaches itself from the controlling terminal and puts
278b87
 itself into background.
278b87
 <command>ypbind</command>
278b87
@@ -132,6 +146,57 @@ If the file does not exist or if there a
278b87
 <command>ypbind</command>
278b87
 exit.</para>
278b87
 
278b87
+<para>
278b87
+In Fedora we use systemd for starting services. We need to finish starting
278b87
+process of <command>ypbind</command> service not before service is fully
278b87
+started, which means <command>ypbind</command> daemon is prepared to answer.
278b87
+There is a test script <filename>/usr/libexec/ypbind-post-waitbind</filename>
278b87
+used in ypbind.service, that waits for <command>ypbind</command> daemon to be
278b87
+fully connected to NIS server and waits by default up to 45s.  Sometimes this
278b87
+is not enough, because network set up can take longer than 45s during boot, so
278b87
+starting ypbind.service fails. User can increase the timeout by setting an
278b87
+environment variable NISTIMEOUT in <filename>/etc/sysconfig/ypbind</filename>.
278b87
+For example NISTIMEOUT=180 means <command>ypbind</command> will wait up to 180
278b87
+seconds for binding to a NIS server.  Another option is to enable
278b87
+NetworkManager-wait- online.service, which will make <command>ypbind</command>
278b87
+to wait until network is properly set up.
278b87
+</para>
278b87
+
278b87
+<para>
278b87
+In case something needs to be changed in the ypbind.service, it is adviced not
278b87
+to change the ypbind.service directly, but rather to create a new file under
278b87
+<filename>/etc/systemd/system/ypbind.service.d/</filename>, i.e. if we need to
278b87
+start <command>ypbind</command> before service foo.service, we can create file
278b87
+<filename>/etc/systemd/system/ypbind.service.d/wait-foo.conf</filename> with
278b87
+the following content:
278b87
+</para>
278b87
+
278b87
+<para>
278b87
+<programlisting>
278b87
+[Service]
278b87
+Before=foo.service
278b87
+</programlisting>
278b87
+</para>
278b87
+<para>
278b87
+If you need to pass other arguments to <command>ypbind</command> daemon withing
278b87
+systemd unit file, you can set these arguments as OTHER_YPBIND_OPTS environment
278b87
+variable in <filename>/etc/sysconfig/ypbind</filename>. For example in order to
278b87
+set a fixed port <command>ypbind</command> should run on, you can specify
278b87
+OTHER_YPBIND_OPTS="-p 876" in <filename>/etc/sysconfig/ypbind</filename>.
278b87
+</para>
278b87
+
278b87
+<para>
278b87
+DHCP client by defualt changes <filename>/etc/yp.conf</filename> in case DHCP
278b87
+server sends NIS configuration in the respond. In that case
278b87
+<filename>/etc/dhcp/dhclient.d/nis.sh</filename> changes
278b87
+<filename>/etc/yp.conf</filename> according such configuration and creates a
278b87
+back-up copy of the original configuration file into
278b87
+<filename>/var/lib/dhclient/nis.conf.predhclient.$interface</filename>.  In
278b87
+order to disable changing <filename>/etc/yp.conf</filename> by DHCP client, add
278b87
+PEERNIS=no into <filename>/etc/sysconfig/network</filename>.
278b87
+</para>
278b87
+
278b87
+
278b87
   </refsect1>
278b87
 
278b87
   <refsect1 id='options'>
278b87
@@ -256,6 +321,15 @@ With this options another frequency in s
278b87
   </listitem>
278b87
   </varlistentry>
278b87
   <varlistentry>
278b87
+  <term><option>-p</option> port</term>
278b87
+  <listitem>
278b87
+<para>Lets
278b87
+<command>ypbind</command>
278b87
+listen on a specified port number, rather than asking portmapper to assingn a
278b87
+port for it.</para>
278b87
+  </listitem>
278b87
+  </varlistentry>
278b87
+  <varlistentry>
278b87
   <term><option>--version</option></term>
278b87
   <listitem>
278b87
 <para>Prints the version number</para>
278b87
diff -up ypbind-mt-2.5/man/yp.conf.5.xml.helpman ypbind-mt-2.5/man/yp.conf.5.xml
278b87
--- ypbind-mt-2.5/man/yp.conf.5.xml.helpman	2018-06-07 16:29:01.853560699 +0200
278b87
+++ ypbind-mt-2.5/man/yp.conf.5.xml	2018-06-07 16:33:59.302833043 +0200
278b87
@@ -97,6 +97,14 @@
278b87
       first the given servers before falling back to broadcasting
278b87
       for a running server.
278b87
     </para>
278b87
+    <para>
278b87
+      Content of <filename>/etc/yp.conf</filename> can be changed by DHCP client,
278b87
+      for more info see
278b87
+      <citerefentry>
278b87
+          <refentrytitle>ypbind</refentrytitle>
278b87
+          <manvolnum>8</manvolnum>
278b87
+      </citerefentry>.
278b87
+    </para>
278b87
   </refsect1>
278b87
 
278b87
   <refsect1 id='see_also'>