ypbind needs domainname - where do I get that from? I built that script from a copy of "hostname" locally... However, the point here is an unwanted delay in "etc/init.d/ypbind", aroused by: if [ -n "$?" ]; then which is always true and it will always do the 10-second loop involving ypwhich. Reproducible: Always Steps to Reproduce: start ypbind without having "domainname" (or no /etc/domainname and no NISDOMAIN= in /etc/conf.d/domainname) (or ???) Actual Results: ypbind continues despite the fact that no domainname is set and ypbind daemon did not start Expected Results: ypbind script should stop/interrupt its actions startup without domainname set: # /etc/init.d/ypbind start * Setting domainname to ... [ ok ] * Starting ypbind ... domainname not set - aborting. <<< 10 seconds delay here >>> * No NIS server found [ !! ] # startup without domainname but with fixed init script: # /etc/init.d/ypbind start * Starting ypbind ... domainname not set - aborting. [ !! ] #
Created attachment 112156 [details, diff] test -n "$?" replaced and "$?" saved in "$ret"...
There's no /etc/conf.d/domainname nor any such init script, nor any 'need domainname' in ypbind init script. See Bug 129451, Comment #14 for hints on proper configuration. *** This bug has been marked as a duplicate of bug 129451 ***