Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 169422

Summary: ypbind rc-script damaged?
Product: Gentoo Linux Reporter: Mark Dominik Bürkle <dominik.buerkle>
Component: [OLD] ServerAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: test -n "$?" replaced and "$?" saved in "$ret"...

Description Mark Dominik Bürkle 2007-03-05 09:56:08 UTC
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.        [ !! ]
#
Comment 1 Mark Dominik Bürkle 2007-03-05 09:57:21 UTC
Created attachment 112156 [details, diff]
test -n "$?" replaced and "$?" saved in "$ret"...
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-03-05 11:30:36 UTC
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 ***