Blame SOURCES/ypbind-mt-1.36-nistimeout.patch

5a592e
diff -up ./man/ypbind.8.nistimeout ./man/ypbind.8
5a592e
--- ./man/ypbind.8.nistimeout	2013-04-09 14:31:04.000000000 +0200
5a592e
+++ ./man/ypbind.8	2013-05-06 19:11:20.509665809 +0200
5a592e
@@ -104,6 +104,31 @@ will behave as usual and assumes there i
5a592e
 will reread all configuration files, registers at the local portmapper and try to search NIS servers\&. If NetworkManager drops a connection,
5a592e
 \fBypbind\fR
5a592e
 will unregister from portmapper\&.
5a592e
+.PP
5a592e
+In Fedora we use
5a592e
+\fBsystemd\fR
5a592e
+for starting services. We need to finish starting process of
5a592e
+\fBypbind\fR
5a592e
+service not before service is fully started, which means
5a592e
+\fBypbind\fR
5a592e
+daemon is prepared to answer. There is a test script /usr/libexec/ypbind-post-waitbind used in
5a592e
+\fBypbind.service\fR,
5a592e
+that waits for
5a592e
+\fBypbind\fR
5a592e
+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
5a592e
+\fBypbind.service\fR
5a592e
+fails. User can increase the
5a592e
+\fBtimeout\fR
5a592e
+by setting an environment variable
5a592e
+\fBNISTIMEOUT\fR
5a592e
+in /etc/sysconfig/ypbind. For example NISTIMEOUT=180 means ypbind will wait up to 180 seconds for binding to a NIS server.
5a592e
+Another option is to enable NetworkManager-wait-online.service and add an ordering rule into
5a592e
+\fBypbind.service\fR,
5a592e
+ideally by creating /etc/systemd/system/ypbind.service with the following content:
5a592e
+
5a592e
+        .include /lib/systemd/system/ypbind.service  
5a592e
+        [Service]
5a592e
+        After=NetworkManager-wait-online.service
5a592e
 .SH "OPTIONS"
5a592e
 .PP
5a592e
 \fB\-broadcast\fR