Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169422 - ypbind rc-script damaged?
Summary: ypbind rc-script damaged?
Status: RESOLVED DUPLICATE of bug 129451
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-05 09:56 UTC by Mark Dominik Bürkle
Modified: 2007-03-05 11:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
test -n "$?" replaced and "$?" saved in "$ret"... (ypbind.patch,466 bytes, patch)
2007-03-05 09:57 UTC, Mark Dominik Bürkle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***