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

Bug 29231

Summary: cupsd init script contains "use net" instead of "need net"
Product: Gentoo Linux Reporter: Sven <sven.koehler>
Component: [OLD] Core systemAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED DUPLICATE    
Severity: major CC: jowilly, mholzer, printing, TobbY
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sven 2003-09-20 16:47:39 UTC
The dependency section of the init-script says "use net" instead of "need net".
Th result was, that cupsd was started before net.eth0 and cups couldn't bind to
the interface.

Reproducible: Always
Steps to Reproduce:
well, nothing, just add cupsd and net.eth0 to default runlevel
Actual Results:  
cupsd is started before net.eth0

Expected Results:  
cupsd is started after net.eth0
Comment 1 SpanKY gentoo-dev 2003-09-21 09:29:42 UTC
you forgot `emerge info` and what version of baselayout do you have ?
Comment 2 Sven 2003-09-21 12:25:30 UTC
baselayout-version:

1.8.6.10-r1

emerge info:

Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22)
=================================================================
System uname: 2.4.22 i686 Pentium II (Klamath)
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O3 -pipe -funroll-loops"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=i686 -O3 -pipe -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 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.gentoo.org/gentoo-portage"
USE="x86 oss avi crypt encode foomaticdb gif gpm imlib jpeg kde libg++ libwww mad mikmod mmx mpeg ncurses nls oggvorbis opengl pdflib png qt quicktime sdl slang spell svga truetype xml2 xmms xv zlib gdbm berkdb readline tcpd pam ssl perl python acpi apache2 apm -arts cups -gnome -gtk -gtk2 java maildir -motif mysql odbc ppds -X -alsa"
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-23 07:41:14 UTC
Please add a 'copy and paste ? of the boot process'.  Also please attach
a copy of /var/lib/init.d/deptree.
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-09-29 13:32:47 UTC
no responce
Comment 5 Sven 2003-09-29 14:54:17 UTC
My deptree is at the end of this text.
As you can see, everything is OK but cupsd starts before net.eth0 is started.
This does not happen if it says "need net" instead of "use net" in /etc/init.d/cupsd
script

I know 3 people that have the same problem!
So don't even think of closing this Bug-Report again before this is fixed!

The boot process currently is like this:
sysklogd is started
cupsd is started
hotplug is started
net.eth0 is started
...



export RC_GOT_DEPTREE_INFO="yes"
depinfo_cupsd() {
    export rc_name="cupsd"
    export rc_ineed=
    export rc_needsme=
    export rc_iuse="net"
    export rc_usesme="samba"
    export rc_ibefore="local"
    export rc_iafter="checkroot sysklogd"
    export rc_broken=
    export rc_parallel=
}

depinfo_cyrus() {
    export rc_name="cyrus"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse="named sysklogd"
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot saslauthd"
    export rc_broken=
    export rc_parallel=
}

depinfo_danteDASHsockd() {
    export rc_name="dante-sockd"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_ddclient() {
    export rc_name="ddclient"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_dhcp() {
    export rc_name="dhcp"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse="named"
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_localmount() {
    export rc_name="localmount"
    export rc_ineed="checkfs"
    export rc_needsme="acpid apmd bootmisc clock consolefont hdparm keymaps
numlock pwcheck rmnologin serial urandom vcron"
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot crypto-loop"
    export rc_broken=
    export rc_parallel=
}

depinfo_domainname() {
    export rc_name="domainname"
    export rc_ineed="checkroot hostname"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="bootmisc local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_mldonkey() {
    export rc_name="mldonkey"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_fakeidentd() {
    export rc_name="fakeidentd"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_modules() {
    export rc_name="modules"
    export rc_ineed="checkroot hostname"
    export rc_needsme="checkfs crypto-loop hotplug"
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_firewall() {
    export rc_name="firewall"
    export rc_ineed=
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local net.ppp0 rp-pppoe"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_mysql() {
    export rc_name="mysql"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse="named"
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_named() {
    export rc_name="named"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse="sysklogd"
    export rc_usesme="cyrus dhcp mysql ntp-client ntpd postfix sshd"
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_netDOTeth0() {
    export rc_name="net.eth0"
    export rc_ineed=
    export rc_needsme=
    export rc_iuse="hotplug"
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_netDOTlo() {
    export rc_name="net.lo"
    export rc_ineed=
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_netDOTppp0() {
    export rc_name="net.ppp0"
    export rc_ineed=
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot firewall"
    export rc_broken=
    export rc_parallel=
}

depinfo_samba() {
    export rc_name="samba"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse="cupsd"
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_netmount() {
    export rc_name="netmount"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_sapdbDOTinstances() {
    export rc_name="sapdb.instances"
    export rc_ineed="sapdb.xserver"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_nscd() {
    export rc_name="nscd"
    export rc_ineed=
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_sapdbDOTxserver() {
    export rc_name="sapdb.xserver"
    export rc_ineed="net"
    export rc_needsme="sapdb.instances"
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_saslauthd() {
    export rc_name="saslauthd"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="cyrus local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_serial() {
    export rc_name="serial"
    export rc_ineed="localmount"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_acpid() {
    export rc_name="acpid"
    export rc_ineed="localmount"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_squid() {
    export rc_name="squid"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_apmd() {
    export rc_name="apmd"
    export rc_ineed="localmount"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_sshd() {
    export rc_name="sshd"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse="named sysklogd"
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_bootmisc() {
    export rc_name="bootmisc"
    export rc_ineed="clock hostname localmount"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local sysklogd"
    export rc_iafter="checkroot domainname"
    export rc_broken=
    export rc_parallel=
}

depinfo_switch() {
    export rc_name="switch"
    export rc_ineed=
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_capi() {
    export rc_name="capi"
    export rc_ineed=
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_checkfs() {
    export rc_name="checkfs"
    export rc_ineed="checkroot modules"
    export rc_needsme="localmount"
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_checkroot() {
    export rc_name="checkroot"
    export rc_ineed=
    export rc_needsme="checkfs crypto-loop domainname hostname modules"
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="acpid apmd bootmisc capi checkfs clock consolefont
crypto-loop cupsd cyrus dante-sockd ddclient dhcp domainname fakeidentd firewall
hdparm hostname hotplug ipsec iptables keymaps local localmount mldonkey
modules mysql named net.eth0 net.lo net.ppp0 netmount nscd ntp-client ntpd
numlock postfix postgresql pwcheck rmnologin rp-pppoe rsyncd samba sapdb.instances
sapdb.xserver saslauthd serial squid sshd switch sysklogd urandom vcron winbind
xinetd"
    export rc_iafter=
    export rc_broken=
    export rc_parallel=
}

depinfo_clock() {
    export rc_name="clock"
    export rc_ineed="localmount"
    export rc_needsme="bootmisc sysklogd vcron"
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_consolefont() {
    export rc_name="consolefont"
    export rc_ineed="localmount"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_cryptoDASHloop() {
    export rc_name="crypto-loop"
    export rc_ineed="checkroot modules"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local localmount"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_hdparm() {
    export rc_name="hdparm"
    export rc_ineed="localmount"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_hostname() {
    export rc_name="hostname"
    export rc_ineed="checkroot"
    export rc_needsme="bootmisc domainname modules sysklogd"
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_hotplug() {
    export rc_name="hotplug"
    export rc_ineed="modules"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme="net.eth0"
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_ipsec() {
    export rc_name="ipsec"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_ntpDASHclient() {
    export rc_name="ntp-client"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse="named sysklogd"
    export rc_usesme=
    export rc_ibefore="local ntpd vcron"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_iptables() {
    export rc_name="iptables"
    export rc_ineed="net sysklogd"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_ntpd() {
    export rc_name="ntpd"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse="named sysklogd"
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot ntp-client"
    export rc_broken=
    export rc_parallel=
}

depinfo_keymaps() {
    export rc_name="keymaps"
    export rc_ineed="localmount"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_numlock() {
    export rc_name="numlock"
    export rc_ineed="localmount"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_local() {
    export rc_name="local"
    export rc_ineed=
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore=
    export rc_iafter="acpid apmd bootmisc capi checkfs checkroot clock consolefont
crypto-loop cupsd cyrus dante-sockd ddclient dhcp domainname fakeidentd firewall
hdparm hostname hotplug ipsec iptables keymaps localmount mldonkey modules
mysql named net.eth0 net.lo net.ppp0 netmount nscd ntp-client ntpd numlock
postfix postgresql pwcheck rmnologin rp-pppoe rsyncd samba sapdb.instances
sapdb.xserver saslauthd serial squid sshd switch sysklogd urandom vcron winbind
xinetd"
    export rc_broken=
    export rc_parallel=
}

depinfo_postfix() {
    export rc_name="postfix"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse="named sysklogd"
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_postgresql() {
    export rc_name="postgresql"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_pwcheck() {
    export rc_name="pwcheck"
    export rc_ineed="localmount"
    export rc_needsme=
    export rc_iuse="sysklogd"
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_sysklogd() {
    export rc_name="sysklogd"
    export rc_ineed="clock hostname"
    export rc_needsme="iptables vcron"
    export rc_iuse=
    export rc_usesme="cyrus named ntp-client ntpd postfix pwcheck sshd"
    export rc_ibefore="cupsd local"
    export rc_iafter="bootmisc checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_rmnologin() {
    export rc_name="rmnologin"
    export rc_ineed="localmount"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_urandom() {
    export rc_name="urandom"
    export rc_ineed="localmount"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_rpDASHpppoe() {
    export rc_name="rp-pppoe"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot firewall"
    export rc_broken=
    export rc_parallel=
}

depinfo_vcron() {
    export rc_name="vcron"
    export rc_ineed="clock localmount sysklogd"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot ntp-client"
    export rc_broken=
    export rc_parallel=
}

depinfo_rsyncd() {
    export rc_name="rsyncd"
    export rc_ineed=
    export rc_needsme=
    export rc_iuse="net"
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_winbind() {
    export rc_name="winbind"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_xinetd() {
    export rc_name="xinetd"
    export rc_ineed="net"
    export rc_needsme=
    export rc_iuse=
    export rc_usesme=
    export rc_ibefore="local"
    export rc_iafter="checkroot"
    export rc_broken=
    export rc_parallel=
}

depinfo_net() {
    export rc_name="net"
    export rc_ineed=
    export rc_needsme="cyrus dante-sockd ddclient dhcp fakeidentd ipsec iptables
mldonkey mysql named netmount ntp-client ntpd postfix postgresql rp-pppoe
samba sapdb.xserver saslauthd squid sshd winbind xinetd"
    export rc_iuse=
    export rc_usesme="cupsd rsyncd"
    export rc_ibefore=
    export rc_iafter=
    export rc_broken=
    export rc_parallel=
}

export LOGGER_SERVICE="sysklogd"
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2003-10-13 14:12:09 UTC
Just change it manually for now, I need to rewrite the dep code again, in
the
next few weeks, and will rather do it for the new 'code base'.
Comment 7 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-19 04:26:18 UTC
*** Bug 31407 has been marked as a duplicate of this bug. ***
Comment 8 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-25 05:39:11 UTC
*** Bug 31943 has been marked as a duplicate of this bug. ***
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2003-10-27 12:28:08 UTC

*** This bug has been marked as a duplicate of 31950 ***