Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64964 - /etc/init.d/ypbind start did not work properly after emerging net-nds/ypbind-1.17.2-r1
Summary: /etc/init.d/ypbind start did not work properly after emerging net-nds/ypbind-...
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High critical
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-22 06:38 UTC by ingo
Modified: 2004-10-01 03:11 UTC (History)
0 users

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


Attachments
Fixed init-script (ypbind,1.03 KB, text/plain)
2004-09-22 06:39 UTC, ingo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ingo 2004-09-22 06:38:04 UTC
After upgrading ypbind from 1.17.2 to 1.17.2-r1 and replacing the /etc/init.d/ypbind script with the one suggested by etc-update ypbind aborted at system start with "domainname not found". I am using dhcp and had configured /etc/conf.d/net properly (dhcpcd="-Y", do not overwrite yp.conf). 
ypbind worked befor that update. 

Reproducible: Always
Steps to Reproduce:
1. emerge =net-nds/ypbind-1.17.2
2. etc-update
3. replace /etc/init.d/ypbind with that etc-update suggests
4. emerge =net-nds/ypbind-1.17.2-r1
5. etc-update
6. replace /etc/init.d/ypbind with that etc-update suggests
7. reboot

Actual Results:  
ypbind did not start on booting up the system. Output: "domainname not found".

Expected Results:  
ypbind should have connected to the nis-server.

How to solve the bug:
Use the attaced ypbind init-script or insert ypdomainname "$YP_DOMAIN" into the
init-script /etc/init.d/ypbind.

emerge info:
Portage 2.0.50-r11 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r1,
2.6.7-gentoo-r6)
=================================================================
System uname: 2.6.7-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups
dga doc dvd encode esd foomaticdb gdbm ggi gif gnome gpm gtk gtk2 gtkhtml imlib
java jpeg kde ldap libg++ libwww mad mikmod motif mozilla mpeg ncurses nls
oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba
scanner sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype usb wmf x86
xml2 xmms xprint xv zlib"
Comment 1 ingo 2004-09-22 06:39:53 UTC
Created attachment 40161 [details]
Fixed init-script

After replacing /etc/init.d/ypbind with the attached file, my system worked
properly again.
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-22 10:34:08 UTC
the 'domainname' startup script is used to setup the domainname.  Please do:
$ echo <domainname> > /etc/nisdomainname && /etc/init.d/domainname restart && /etc/init.d/ypbind start
Comment 3 ingo 2004-10-01 03:11:45 UTC
Thank you for your comment. Now I see how it was supposed to be. It works now!