| Summary: | baselayout-1.8.6.7: cardmgr/runscript.sh errors on init 6 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Jason Waldhelm <jason> |
| Component: | [OLD] Core system | Assignee: | Peter Johanson (RETIRED) <latexer> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | azarah, chadh, gentoo-bugs, hanno |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Bug Depends on: | 20851 | ||
| Bug Blocks: | |||
|
Description
Jason Waldhelm
2003-05-12 10:22:12 UTC
Do you also get the errors with: # /etc/init.d/net.eth1 stop|start being run manually ? output of /etc/init.d/net.eth1 stop|start:
root@frozen /var/log
# /etc/init.d/net.eth1 stop
* Bringing eth1 down...
* Waiting for dhcpcd to shutdown.....done [ ok ]
root@frozen /var/log
# /etc/init.d/net.eth1 start
* Bringing eth1 up... [ ok ]
what escaped my attention before was it seems that the services start a bit out of order.
When a link isn't detected on eth0 (the on board NIC), cupsd, netmount and ntpd try to
start before pcmcia (I can't seem to find the exact logging so I'll "paraphrase":
Network link on Eth0 not detected... network not initialized...
Error: problem starting needed services
"cupsd" was not started.
Error: problem starting needed services
"netmount" was not started.
Starting syslogd, klogd... [ ok ]
Error: problem starting needed services
"ntpd" was not started.
Starting pcmcia... [ ok ]
cardmgr[874]: watching 2 sockets...
then everything else continues as normal.
The link detection is a bit of a hack to net.eth0:
else
if [ ! -n "$(which mii-diag 2> /dev/null)" -o -n "$(mii-diag --status ${IFACE} | grep "link
beat" | grep "OK")" ]
then
/sbin/dhcpcd ${dhcp_args} ${IFACE} >/dev/null || {
retval=$?
eend ${retval} "dhcpcd failed to bring up ${IFACE}"
return ${retval}
}
else
eend 2 "No ethernet link on ${IFACE} detected - Network Not Initialized"
return 2
fi
fi
Hmm, well in theory if it do not get it right with net.eth0 failing, it should also not with it starting, as pcmcia *should* have been started already ... Please have a look on 20851, the patches should fix your problem. cardmgr is calling ./network start eth1 Same issue. *** This bug has been marked as a duplicate of 20851 *** I forgot to add .. the issues with pcmcia not starting properly was a bug in the depend code, fixed on cvs: ----------------------------------- 13 May 2003; Martin Schlemmer <azarah@gentoo.org>: For the network functions, the dependency code tried to create a funcion with a '.' in the name, causing the network rc-scripts to not have any dependencies. This should fix bug #20849 's order issue, thanks to YAMAKURA Makoto <makoto@dsb.club.ne.jp> for noticing. |