Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110707 - ifplugd can't activate inactive interface: service already started
Summary: ifplugd can't activate inactive interface: service already started
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-28 06:33 UTC by Martin von Gagern
Modified: 2005-10-30 06:01 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2005-10-28 06:33:14 UTC
I just tried to configure my network to use ifplugd for eth0. When I boot
without network, I get a message that configuring the interface failed - which
makes sense. When I late plug in the cable, ifplugd logs that it would execute
/usr/sbin/ifplugd.action. Then I get an error message from /etc/init.d/eth0 that
this service has already been started. /etc/init.d/eth0 status tells me its
status is "inactive". Manually calling /etc/init.d/eth0 start gives me the same
error message. How do I activate an inactive service?

By looking at ifplugd.action, it seems that it would stop the service when the
cable is removed, instead of deactivating it again. When I removed the cable, I
got error messages to syslog and the service got stuck in the state stopping, so
that I had to zap it.

Reproducible: Always
Steps to Reproduce:
1. Boot system without network connection
2. Plug in network cable after boot
3. Look at syslog
4. Wait some time (so this is no timing problem only)
5. Pull the network plug
6. Loog at syslog again
Actual Results:  
:37 ifplugd(eth0)[8794]: Link beat detected.
:38 ifplugd(eth0)[8794]: Executing '/usr/sbin/ifplugd.action eth0 up'.
:39 ifplugd(eth0)[8794]: client:  WARNING: "net.eth0" has already been started.
:39 rc-scripts: WARNING: "net.eth0" has already been started.
:39 ifplugd(eth0)[8794]: Program executed successfully.
/etc/init.d/net.eth0 status: inactive
:50 eth0: Setting full-duplex based on MII #24 link partner capability of 05e1.

:04 ifplugd(eth0)[8794]: Link beat lost.
:10 ifplugd(eth0)[8794]: Executing '/usr/sbin/ifplugd.action eth0 down'.
:11 ifplugd(eth0)[8794]: Killing child.
The last message occurs exactly 50 times
/etc/init.d/net.eth0 status: stopping

Expected Results:  
When link detected: * device configured
                    * service state changed to started.
When link lost: * device unconfigured (e.g. routes)
                * service state changed to inactive
I'd also expect commands "activate" and "deactivate" for the init script.

sys-apps/ifplugd-0.28  -doc
sys-apps/baselayout-1.12.0_pre9-r1  -bootstrap -build -static +unicode

Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2,
2.6.12-gentoo-r10 i686)
=================================================================
System uname: 2.6.12-gentoo-r10 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz
Gentoo Base System version 1.12.0_pre9
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -msse2 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/boot/grub /etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -msse2 -mfpmath=sse"
FEATURES="autoconfig distlocks sandbox sfperms strict"
LINGUAS="en de"
USE="x86 X acpi alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl dts
dvd dvdr eds emboss encode esd fam ffmpeg flac foomaticdb fortran gd gdbm gif
gnutls gphoto2 gpm gstreamer gtk gtk2 imagemagick imap imlib innodb ipv6 java
jpeg junit kde libg++ libwww lirc mad maildir mailwrapper mikmod mmx motif mp3
mpeg mule mysql ncurses nls nptl ogg oggvorbis opengl oss pam pcmcia pdflib perl
pic png pnp python qt quicktime readline samba sasl sdl slang speex spell sse
ssl svga tcltk tcpd tetex tiff truetype truetype-fonts trusted type1-fonts udev
unicode usb vorbis wavelan xine xml xml2 xmms xv zlib fritzcapi_cards_fcusb2
linguas_en linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-10-30 06:01:16 UTC
This should be fixed with ifplugd-0.28-r4

Re-open if you disagree