suggested change to /etc/init.d/ypbind

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi -

Our Linux laptops have NIS enabled so that when they're on the company LAN, the users have access to everything they would have from the desktops... mostly the NIS automount maps.  The problem is that if NIS is enabled, and the laptop is booted on some other network, it takes several minutes for NIS to timeout.

This period is determined by a 1...20 loop in /etc/init.d/ypbind.  It is easy  enough to edit the script and change the 20 to something smaller, but I'm afraid that future updates might overwrite the file.

I would like to suggest that the fixed value of "20" be replaced with a variable, that could be set in /etc/sysconfig/network file.  The resulting ypbind script would look like this:

+         if [ "$NISTIMEOUT" = "" ]; then
+           NISTIMEOUT=20
+         fi
        echo -n $"Listening for an NIS domain server."
!       for (( times = 1; times < $NISTIMEOUT; times++ )); do

Thanks

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux