/etc/init.d/net.eth1 is my wireless network card with ipw2200 kernel-module. same problem with the ipw2200 package. after the service is started and running for a while (like 20minutes, seems more or less random) the service is stopped and then keeps starting and stopping over and over like this: slave@tuxracer ~ $ /etc/init.d/net.eth1 status * status: starting slave@tuxracer ~ $ /etc/init.d/net.eth1 status * status: stopping slave@tuxracer ~ $ /etc/init.d/net.eth1 status * status: inactive slave@tuxracer ~ $ /etc/init.d/net.eth1 status * status: starting slave@tuxracer ~ $ /etc/init.d/net.eth1 status * status: stopping the way to fix it, is by manually stopping the service twice(!) and then restarting it like this: slave@tuxracer ~ $ su Password: tuxracer slave # /etc/init.d/net.eth1 stop * Stopping eth1 * Running predown function * Enabling hardware kill-switch [ ok ] * Bringing down eth1 * Shutting down eth1 ... [ ok ] * Stopping wpa_cli on eth1 ... [ ok ] * Stopping wpa_supplicant on eth1 ... [ ok ] tuxracer slave # /etc/init.d/net.eth1 stop * Stopping eth1 * Running predown function * Enabling hardware kill-switch [ ok ] * Bringing down eth1 * Shutting down eth1 ... [ ok ] tuxracer slave # /etc/init.d/net.eth1 start * Starting eth1 * Running preup function * Disabling hardware kill-switch [ ok ] * Starting wpa_supplicant on eth1 ... [ ok ] * Starting wpa_cli on eth1 ... [ ok ] * Backgrounding ... i dont know if it's related but when checking dmesg after the service flips around i get his: ipw2200: Failed to send CARD_DISABLE: Command timed out. ipw2200: Failed to send CARD_DISABLE: Command timed out. Anyone got any idea about that? I don't even know if it's related to the baselayout scripts... emerge --info follows Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.18-gentoo i686) ================================================================= System uname: 2.6.18-gentoo i686 Intel(R) Pentium(R) M processor 1.50GHz Gentoo Base System version 1.12.5 Last Sync: Sun, 22 Oct 2006 11:50:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo " LANG="de_DE.utf8" LC_ALL="de_DE.utf8" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 X a52 aac acpi alsa apache2 arts asf berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt dba dbus dlloader dri dts dvd dvdr dvdread eds elibc_glibc emboss encode fam firefox fortran gdbm gif gpm gtk gtk2 hal input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics isdnlog java jpeg jpeg2k kde kdehiddenvisibility kernel_linux libg++ linguas_de mad mikmod mmx mmxext mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg opengl oss pam pcre perl png ppds pppd python qt3 qt4 quicktime readline real reflection rtc samba sdl session spell spl sse sse2 ssl tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_fbdev video_cards_i810 video_cards_vesa vorbis wifi win32codecs x264 xml xorg xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Please attach your /etc/conf.d/net
Created attachment 100332 [details] the /etc/conf.d/net
Looks like predown() show be postdown() Also, net scripts are re-entrant and I'd guess that you want to check for that by putting this at the top of each custom function. ${IN_BACKGROUND} && return 0
The changes don't affect the service's behaviour. As I cannot resolve this to not being a hardware issue, i change the resolution to invalid. What bugs me is the fact that the service itself is stopped and restarted over and over. A hardware bug, killing the nic after a while shouldn't be able to trigger the service.
(In reply to comment #4) > What bugs me is the fact that the service itself is stopped and restarted over > and over. A hardware bug, killing the nic after a while shouldn't be able to > trigger the service. It's probably wpa_supplicant getting all fussey because you're messing with the kill switch. Does it work if you remove your preup/postdown functions?
same problem without the hooks. the killswitch doesnt affect the nic's ability to accept iwconfig/wpa_supplicant calls. it just doenst transmit a damn thing. also the problem of the service suddendly stopping and restarting occurs some twenty minutes after it has been started the first time. again, I don't understand why the service stops in the first place.
(In reply to comment #6) > again, I don't understand why the service stops in the first place. wpa_supplicant stops itself with IN_BACKGROUND=true when link is lost. Maybe this is what you're seeing - check your logs.