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

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