When using ifplugd to control the network connection, if the cable is unplugged the netmount script is run to umount network drives (AFAIK). The list of network filesystems include fuse as defined by NET_FS_LIST in /etc/init.d/functions.sh. Unfortunately, encfs uses fuse, so the encfs process is killed and all mounted encrypted filesystems disappear. If you are encrypting your whole home directory (as I was on a laptop), your session is terminated. As a quick fix I've removed fuse from NET_FS_LIST, and so far things seem to be working correctly.
afaik, the net script shouldnt be restarted you didnt post `emerge info` or your /etc/conf.d/net file; do so now please
istfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acpi alsa apache2 audiofile avi bash-completion berkdb bidi bindinst bitmap-fonts bzip2 cdda cddb cdio cdparanoia cdr cli clock-screen cracklib crypt cscope cups divx4linux dlloader dri dts dvd dvdr dvdread elibc_glibc emboss encode examples fbcon ffmpeg flac font-server fortran freetype ftp gd gdbm gif glut gnutls gpm gstreamer gtk gtk2 gtkhtml imagemagick imap imlib input_devices_keyboard input_devices_mouse input_devices_synaptics isdnlog jabber jack java javamail javascript jikes jms jmx joystick jpeg junit kernel_linux key-screen lcms ldap libg++ libwww live mad madwifi matroska mbox mikmod mmx mmxext motif mouse mozdevelop mp3 mpeg mppe-mppc msn nas ncurses nls nntp nptl nptlonly nsplugin objc offensive ogg oggvorbis on-the-fly-crypt openal opengl oss pam pcre pda pdflib perl php png posix postgres pppd python qt qt3 qt4 quicktime readline real reflection rtc ruby sdl search-screen session shout skins slang softmmu sox spell spl sse sse2 ssl stream svg tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l2 vcd video_cards_fbdev video_cards_radeon videos vim-with-x vlm vorbis win32codecs wxwindows x86 xine xml xmms xorg xosd xpm xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS # This blank configuration will automatically use DHCP for any net.* # scripts in /etc/init.d. To create a more complete configuration, # please review /etc/conf.d/net.example and save your configuration # in /etc/conf.d/net (this file :]!). config_eth0=("dhcp") dhcp_eth0="nontp" config_ath0=("dhcp") modules_ath0=("wpa_supplicant" "!iwconfig") wpa_supplicant_ath0="-Dmadwifi" # For Atheros based cards mode_ath0="managed" wpa_timeout_ath0=60 dhcp_ath0="nontp"
i'm going to guess that this is simply misconfiguration (sort of) if the ifplugd interface is your only network interface and you have not configured RC_NET_STRICT_CHECKING in /etc/conf.d/rc, then the behavior you're seeing is correct: all network init.d scripts are brought down when you unplug the cable since fuse contains both network and local filesystems, for the purpose of our init.d scripts we have to assume the worse and go with network as there is no easy way to figure out what's what you can tweak RC_NET_STRICT_CHECKING so that the network scripts are not taken down when stopping your iface, but that's about the best i can suggest
*** Bug 149777 has been marked as a duplicate of this bug. ***