From 313f26f7186d6094ffb33fbeccf3379b460b1f17 Mon Sep 17 00:00:00 2001 From: Alois Mahdal Date: Oct 07 2020 17:49:45 +0000 Subject: Fix and improve texts in ypbind(8) #1886133 Fix typos & basic grammar and try to re-phrase some sentences in sections added to ypbind(8). List of changes: * Fixed typos. * Fixed grammar errors. * Fixed '45s' spelling. * Simplified part about wait timeout. * Re-phrased the intro to avoid mentioning "In Fedora"; this really is about systemd (which is also used on rhel7/8 and more Fedora derivatives.) * Simplified part about DHCP and PEERNIS. --- diff --git a/ypbind-2.5-helpman.patch b/ypbind-2.5-helpman.patch index 1d5c663..c6cb3fd 100644 --- a/ypbind-2.5-helpman.patch +++ b/ypbind-2.5-helpman.patch @@ -59,24 +59,23 @@ diff -up ypbind-mt-2.5/man/ypbind.8.xml.helpman ypbind-mt-2.5/man/ypbind.8.xml exit. + -+In Fedora we use systemd for starting services. We need to finish starting -+process of ypbind service not before service is fully ++When systemd is used for starting services, we need to finish starting ++process of ypbind service not before service is considered fully +started, which means ypbind daemon is prepared to answer. -+There is a test script /usr/libexec/ypbind-post-waitbind -+used in ypbind.service, that waits for ypbind daemon to be -+fully connected to NIS server and waits by default up to 45s. Sometimes this -+is not enough, because network set up can take longer than 45s during boot, so -+starting ypbind.service fails. User can increase the timeout by setting an ++In ypbind.service, there is a test script /usr/libexec/ypbind-post-waitbind ++that will wait for ypbind daemon to be fully connected ++to NIS server. The default time to wait is 45 seconds, so in case network set up ++takes longer, starting of ypbind.service fails. User can increase the timeout by setting an +environment variable NISTIMEOUT in /etc/sysconfig/ypbind. +For example NISTIMEOUT=180 means ypbind will wait up to 180 +seconds for binding to a NIS server. Another option is to enable -+NetworkManager-wait- online.service, which will make ypbind ++NetworkManager-wait-online.service, which will make ypbind +to wait until network is properly set up. + + + -+In case something needs to be changed in the ypbind.service, it is adviced not -+to change the ypbind.service directly, but rather to create a new file under ++In case something needs to be changed in the ypbind.service, it is advised not ++to change the ypbind.service directly, but rather create a new file under +/etc/systemd/system/ypbind.service.d/, i.e. if we need to +start ypbind before service foo.service, we can create file +/etc/systemd/system/ypbind.service.d/wait-foo.conf with @@ -90,7 +89,7 @@ diff -up ypbind-mt-2.5/man/ypbind.8.xml.helpman ypbind-mt-2.5/man/ypbind.8.xml + + + -+If you need to pass other arguments to ypbind daemon withing ++If you need to pass other arguments to ypbind daemon within +systemd unit file, you can set these arguments as OTHER_YPBIND_OPTS environment +variable in /etc/sysconfig/ypbind. For example in order to +set a fixed port ypbind should run on, you can specify @@ -98,13 +97,13 @@ diff -up ypbind-mt-2.5/man/ypbind.8.xml.helpman ypbind-mt-2.5/man/ypbind.8.xml + + + -+DHCP client by defualt changes /etc/yp.conf in case DHCP -+server sends NIS configuration in the respond. In that case -+/etc/dhcp/dhclient.d/nis.sh changes -+/etc/yp.conf according such configuration and creates a -+back-up copy of the original configuration file into -+/var/lib/dhclient/nis.conf.predhclient.$interface. In -+order to disable changing /etc/yp.conf by DHCP client, add ++DHCP client by default can change /etc/yp.conf. In case DHCP ++server sends NIS configuration in the response, ++/etc/dhcp/dhclient.d/nis.sh will update ++/etc/yp.conf with configuration from the DHCP response and create a ++back-up copy of the original configuration file named ++/var/lib/dhclient/nis.conf.predhclient.$interface. ++To disable changing /etc/yp.conf by DHCP client, add +PEERNIS=no into /etc/sysconfig/network. + + @@ -120,7 +119,7 @@ diff -up ypbind-mt-2.5/man/ypbind.8.xml.helpman ypbind-mt-2.5/man/ypbind.8.xml + +Lets +ypbind -+listen on a specified port number, rather than asking portmapper to assingn a ++listen on a specified port number, rather than asking portmapper to assign a +port for it. + +