Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139157 - mldonkey needs net.lo for stopping
Summary: mldonkey needs net.lo for stopping
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
: 138681 139424 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-04 03:59 UTC by Pacho Ramos
Modified: 2007-02-02 19:46 UTC (History)
5 users (show)

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 Pacho Ramos gentoo-dev 2006-07-04 03:59:54 UTC
mldonkey needs net.lo to be active for stop properly. There are two possible fixes:
1. modify /etc/init.d/mldonkey for adding:
depend() {
        need net.lo net
}

2. Add a warning to mldonkey ebuild for notifying that a modification in RC_NET_STRICT_CHECKING in /etc/conf.d/rc is needed (it should be set to "yes" value":

RC_NET_STRICT_CHECKING="yes"

Thanks
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-07-04 04:09:39 UTC
>  need net.lo net 

- uh, this is very wrong... and need net already covers net.lo (see  RC_NET_STRICT_CHECKING below)

> RC_NET_STRICT_CHECKING="yes" 

- that's not how to check for net.lo only, should be RC_NET_STRICT_CHECKING="lo" then. Well I don't grok much what are you saying here, anything from no/lo/yes should work, if you set it to none, then you either known what you are doing or you shouldn't do it. 

Post what errors are get or whatnot, this doesn't make sense.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-07-04 04:12:08 UTC
Also, some steps to reproduce and emerge --info.
Comment 3 Pacho Ramos gentoo-dev 2006-07-04 07:33:34 UTC
When I set RC_NET_STRICT_CHECKING to "no", mldonkey service only depends on net.eth1 (Now, I am not using net.eth0). When I shutdown my computer, net.lo is stopped before mldonkey, then, mldonkey cannot stop and the runlevel is not completed.

I think that the following are related with this bug:
http://bugs.gentoo.org/show_bug.cgi?id=138681
http://forums.gentoo.org/viewtopic-p-3417050.html

Thanks a lot

emerge --info:
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-suspend2-r9 i686)
=================================================================
System uname: 2.6.16-suspend2-r9 i686 Genuine Intel(R) CPU           T2300  @ 1.66GHz
Gentoo Base System version 1.6.15
ccache version 2.3 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
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-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=pentium-m"
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 /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer -mfpmath=sse -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ "
LANG="es_ES.UTF-8"
LINGUAS="es"
MAKEOPTS="-j3"
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.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa ansi apache2 arts asf audiofile avi bash-completion bcmath bidi bitmap-fonts bonobo bzip2 bzlib cairo caps cdb cddb cdparanoia cdr cdrparanoia cli cpdflib cross crypt cscope css ctype cups curl curlwrappers dbus dga dio directfb divx4linux dlloader dri dts dv dvb dvd dvdr dvdread eds emboss encode escreen esd evo exif fam fbcon ffmpeg fftw firefox flac foomaticdb fortran ftp gb gcj gd ggi gif gimp gimpprint glut glx gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howl iconv imagemagick imlib ipv6 isdnlog jabber jack java jbig jikes jpeg kde kdeenablefinal latex lcms ldap lesstif libg++ libwww logrotate lua mad mbox mikmod mime ming mmap mmx mmxext mng mono motif mozilla mp3 mpeg mpi musepack nas ncurses nethack nls nocd nptl nsplugin ntfs nvidia ogg oggvorbis openal opengl opnegl oss pam pcmcia pcre pdf pdflib perl pic png pnp posix ppds pppd python qt qt3 qt4 quicktime readline real reflection reiserfs rtc ruby scanner sdl session slang slp smp sndfile sockets socks5 speex spell spl sse sse2 ssl svg svga tcltk tcpd tetex tga theora threads tiff truetype truetype-fonts trusted type1-fonts udev unicode usb userlocales v4l v4l2 vcd videos vorbis wifi win32codecs wma wmf wxwindows x86 xine xml xml2 xmms xorg xpm xscreensaver xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_es userland_GNU video_cards_nvidia video_cards_nv video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-07-04 09:05:02 UTC
*** Bug 138681 has been marked as a duplicate of this bug. ***
Comment 5 groepaz 2006-07-04 20:05:37 UTC
same problem as the original poster had here, and i suggested the same ugly "fix" in the other bug :=)

# emerge --info
Portage 2.1-r1 (default-linux/amd64/2005.1, gcc-3.4.5/amd64-vanilla, glibc-2.3.6-r4, 2.6.16-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.15
dev-lang/python:     2.3.5-r2, 2.4.2
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.15.92.0.2-r10, 2.16.1-r3
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2 -Wall -W"
CHOST="x86_64-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 /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -pipe -O2 -Wall -W"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.du.se/pub/os/gentoo http://pandemonium.tiscali.de/pub/gentoo/"
LANG="de_DE@euro"
LINGUAS="de en"
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="amd64 16bit 3ds 7zip S3TC X Xaw3d a52 aac aalib acpi alsa amarok amd amr ao aotuv apache2 apm aqua_theme arts asf athena audiofile avi bash-completion bcmath bdf berkdb bitmap-fonts bittorrent bl blender-game bluetooth browserplugin bzip2 bzlib c++ cardbus cd cdda cddb cdio cdparanoia cdr cdrom cegui cg chm cid cjk cli corba cpulimit crypt css cups curl curlwrappers custom-cflags cvs daap dar64 dba de_tvtoday debugger delays devil dga dhcp dio directfb divx4linux dlloader dnd dpms dri dts dv dvd dvdr dvdread dvi dxr3 edl eds emboss emul-linux-x86 encode esd examples exif fame fat fb fbcon fbdev ffmpeg figlet firefox flac flash flood fltk fmod font-server foomaticdb fpx freetype ftp gdb ggi gif gimp gimpprint glibc-compat20 glut glx gnome gpgme gpm gprof graphicsmagick graphviz gs gstreamer gtk gtk2 hal hddtemp hfs html http httpd id3 idea idn ieee1394 imagemagick imap imlib imlib2 ipv6 irc irda isdnlog jack jasper java javacomm javascript jit john joystick jp2 jpeg jpeg2k jumpplay kde koffice-plugin kqemu lame latex lcms libcaca libsamplerate libvisual libwww lirc live lm_sensors logitech-mouse logrotate lua lzo lzw lzw-tiff mad matroska memlimit menubar mikmod mime mimencode mjpeg mmap mng mod monkey motif mozdevelop moznocompose moznoirc moznomail mozsvg mp3 mp4live mpc mpeg mpeg2 mpeg4 mplayer multislot music musicbrainz mythtv ncurses net network nls no_wxgtk1 nocd nptl nsplugin ntfs ntlm nvidia offensive ogg oggvorbis ogre openal opengl operanom2 oss pam pcre pdf pdflib perl php pic png pnp portaudio posix povray ppds pppd print python qemu-fast qt qt3 qt4 quicktime rar readline reflection reiserfs rrdtool rss rtc sblive screen sdl sensord session sftp shorten slang sndfile sockets softmmu sounds speedo speex spell spl src sse-filters ssl stencil-buffer stream streamzap subtitles subversion svg svgz syslog tcltk tcpd tetex tga theora threads tidy tiff timidity toolbar transcode truetype truetype-fonts type1 type1-fonts uml underscores unicode usb userland utf8 v4l v4l2 vcd vcdimager vfat videos vim-with-x visualization vlm vnc vorbis wifi wma wma123 wmf wxwindows x11vnc xanim xchatdccserver xchattext xine xml xmms xorg xpm xprint xv xvid xvmc yv12 zeroconf zlib zvbi elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_de linguas_en lirc_devices_hauppauge userland_GNU video_cards_vesa video_cards_fbdev video_cards_nv video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-07-06 07:43:24 UTC
*** Bug 139424 has been marked as a duplicate of this bug. ***
Comment 7 Nikolaus Polak 2006-07-22 11:52:35 UTC
Same problem here, when I try to reboot or shutdown the system, it hangs on "Stopping mldonkey..." - only hardware reset helps me out from there. (mldonkey version: 2.7.7, gentoo box has two ethernet devices)

emerge --info:
Portage 2.1-r1 (hardened/amd64, gcc-4.0.3, glibc-2.3.6-r3, 2.6.16-beyond4 x86_64)
=================================================================
System uname: 2.6.16-beyond4 x86_64 AMD Sempron(tm) Processor 2800+
Gentoo Base System version 1.6.15
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
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-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ "
LANG="de_AT.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.europe.gentoo.org/gentoo-portage"
USE="aac aalib acl acpi alsa amd64 apache2 audiofile avahi berkdb bzip2 calendar caps cdr clamav crypt cups curl dedicated dlloader dnsdb dvdr emul-linux-x86 erandom fam flash foomaticdb gd gdbm geoip gif glibc-omitfp gmp hardened idn imagemagick imap jabber java javascript jpeg jpeg2k justify lcms libwww logrotate mad maildir mcal mikmod mime ming mng mp3 mpeg mysql mysqli ncurses nis nls nocd nptl nptlonly ocaml odbc ogg openal pam pcre pdf perl php pic png ppds python qdbm quicktime readline samba sasl session slang sndfile snmp snortsam soap speex spl sqlite sqlite3 ssl svg syslog tcltk tcpd tidy tiff tokenizer truetype udev unicode usb userlocales vhosts wmf xattr xml xmlrpc xorg xvid zip zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux linguas_de userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 8 David Carlos Manuelda 2006-07-27 19:07:05 UTC
I confirm the provisional solution by adding need net.lo net (Jakub said it is wrong, but it works... any other walkarround?)
Comment 9 Maciej Blizinski 2006-08-22 05:44:20 UTC
The same problem here, and my emerge --info follows:

Portage 2.1.1_pre5-r2 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r12 i686)
=================================================================
                        System Settings
=================================================================
System uname: 2.6.16-gentoo-r12 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.12.4
Last Sync: Tue, 22 Aug 2006 09:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
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-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.zie.pg.gda.pl"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en pl"
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/overlays/xiaoka /usr/local/overlays/automaciej /usr/portage/local/layman/portage-xgl"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 7zip X Xaw3d a52 aac aalib acl acpi alsa amarok apache2 apm arts artswrappersuid asterisk atm audiofile authdaemond avi bash-completion batch bcmath berkdb bitmap-fonts blas bluetooth bonobo bootsplash browserplugin bzip2 cairo caps cdparanoia cdr cgi chm clamav cli clibpdf config_wizard crypt cups dba dbus dhcp dlloader doc dri dv dvd dvdr dvdread dvi dynagraph eds effects elibc_glibc emacs emacs-w3 emboss encode esd evo examples expat extensions extras fam fame fastcgi ffmpeg fftw firebird firefox flac flash flatfile fontconfig foomaticdb fortran ftp gcj gd gdbm gif gimpprint ginac glade gmp gnome gnomecanvas gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml hal hdf5 hlapi htkhtml i8x0 iconv ieee1394 ilbc imagemagick imap imlib inkjar input_devices_keyboard input_devices_mouse input_devices_wacom irda irmc isdnlog jabber jack jack-tmpfs jai java jikes jimi jingle jpeg junit jython kde kernel_linux ladspa lapack latex lcms ldap leim libclamav libg++ libgda libsamplerate libwww linguas_en linguas_pl lm_sensors lzo mad mail maildir matroska mbox mbrola memlimit mikmod ming mjpeg mmap mmx mng mono motif mp3 mpeg mule musepack musicbrainz mysql nas nautilus ncurses network nls nntp nsplugin oav ocaml odbc offensive ogg oggvorbis ole onoe opengl oss pam pam_console pbs pcre pda pdf pdflib perl php plotutils plugin png pop portaudio postgres ppds pppd python qhull qt3 qt4 quicktime quotas readline real reflection rhythmbox rtc ruby samba sasl scp sdl server session sharedmem slang smime sndfile sockets sox speech speex spell spl spreadsheet sqlite sse sse2 ssl svg swat sysfs syslog szip tcltk tcpd tetex theora threads tidy tiff truetype truetype-fonts type1-fonts unicode urandom usb userland_GNU utf8 v4l v4l2 vhosts video_cards_fbdev video_cards_fglrx videos voice vorbis wacom wifi win32codecs wmf wv wxwindows x11vnc x264 xanim xface xinerama xml xml2 xmlrpc xmms xorg xosd xpm xscreensaver xsl xv xvid zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================
net-p2p/mldonkey-2.7.6-r1 was built with the following:
CFLAGS="-O2 -fomit-frame-pointer -march=pentium4 -pipe"
CXXFLAGS="-O2 -fomit-frame-pointer -march=pentium4 -pipe"
Comment 10 Raúl Porcel (RETIRED) gentoo-dev 2007-01-10 10:18:30 UTC
Does this happen with 2.8.2?
Comment 11 Pacho Ramos gentoo-dev 2007-01-10 11:40:04 UTC
(In reply to comment #10)
> Does this happen with 2.8.2?
> 

Yes, it is still valid :-(

Thanks :-)
Comment 12 annagul 2007-01-12 10:36:58 UTC
Same problem here
Comment 13 Christian Schlotter 2007-01-12 19:15:56 UTC
(In reply to comment #1)
> >  need net.lo net 
> 
> - uh, this is very wrong... and need net already covers net.lo (see 
> RC_NET_STRICT_CHECKING below)
> 
> > RC_NET_STRICT_CHECKING="yes" 
> 
> - that's not how to check for net.lo only, should be
> RC_NET_STRICT_CHECKING="lo" then. Well I don't grok much what are you saying
> here, anything from no/lo/yes should work, if you set it to none, then you
> either known what you are doing or you shouldn't do it. 

If the network is up is checked in the function is_net_up() in /lib/rcscripts/sh/rc-services.sh

This is the comment put in front of is_net_up():
# bool is_net_up(char *exclude)
#
#    Return true if service 'net' is considered up, else false.
#
#    Notes for RC_NET_STRICT_CHECKING values:
#      none  net is up without checking anything - usefull for vservers
#      lo    Interface 'lo' is counted and if only it is up, net is up.
#      no    Interface 'lo' is not counted, and net is down even with it up,
#            so there have to be at least one other interface up.
#      yes   All interfaces must be up.

So the Gentoo default setting "no" means that the state of interface 'lo' has no influence on the state of service 'net'.

To be honest, I do not see the problem when specifying
need net net.lo

This will ensure that MLDonkey will start and stop with every configuration.
Comment 14 Christian Schlotter 2007-01-12 23:28:44 UTC
Hello everyone!

A rewritten MLDonkey init script, which besides other things addresses the issue discussed here, is attached to bug #141177.  I would be glad if you could take some time to test it.

Regards
Christian
Comment 15 Pacho Ramos gentoo-dev 2007-01-13 11:44:35 UTC
(In reply to comment #14)
> Hello everyone!
> 
> A rewritten MLDonkey init script, which besides other things addresses the
> issue discussed here, is attached to bug #141177.  I would be glad if you could
> take some time to test it.
> 
> Regards
> Christian
> 

Seems that net.lo now has a more "normal" behavior. With your script, when I run /etc/init.d/net.lo stop, mldonkey is stopped before that.

Thanks
Comment 16 Raúl Porcel (RETIRED) gentoo-dev 2007-01-24 15:25:55 UTC
Could you guys paste your output from: rc-status show default ?

And does this happen doing a reboot after booting? I mean, boot the computer, then make it reboot(supposing you have mldonkey in the default runlevel).

I can't reproduce this :/
Comment 17 Christian Schlotter 2007-01-24 16:06:43 UTC
$ rc-update show
            bootmisc | boot                          
             checkfs | boot                          
           checkroot | boot                          
               clock | boot                          
         consolefont | boot                          
            hostname | boot                          
             keymaps | boot                          
               local |      default nonetwork        
          localmount | boot                          
             metalog |      default                  
             modules | boot                          
            net.eth0 |      default                  
              net.lo | boot                          
            netmount |      default                  
                 nfs |      default                  
           rmnologin | boot                          
               samba |      default                  
              serial | boot                          
                sshd |      default                  
             urandom | boot                          
          vixie-cron |      default

With the init script currently in the tree I was able to reproduce it by
1. /etc/init.d/net.lo stop
2. /etc/init.d/mldonkey stop

Of course this problem is gone with the fix suggested here (activated in the init script from bug 141177 with USE_LOGGER=true).
Comment 18 Raúl Porcel (RETIRED) gentoo-dev 2007-01-26 14:50:27 UTC
(In reply to comment #17)
> With the init script currently in the tree I was able to reproduce it by
> 1. /etc/init.d/net.lo stop
> 2. /etc/init.d/mldonkey stop
> 
> Of course this problem is gone with the fix suggested here (activated in the
> init script from bug 141177 with USE_LOGGER=true).
> 

Yeah, well, with that is easy to reproduce. But i wanted a real case, as i tried with two ethernet cards, i rebooted many times to see if it hangs, but net.* never stopped before mldonkey.

Maybe this does not happen with the latest baselayout?
Comment 19 Raúl Porcel (RETIRED) gentoo-dev 2007-02-02 12:22:56 UTC
Pacho, does it still happen with 2.8.2-r1?

I'm waiting for this bug to request a stabilization.
Comment 20 Pacho Ramos gentoo-dev 2007-02-02 19:43:08 UTC
With the new baselayout seems that never net.lo is stopped before mldonkey, if I manually stop net.lo before mldonkey, mldonkey fails to stop, but, in a normal behavior, mldonkey is properly stopped during poweroff.

If you want, I can mark this as FIXED

Comment 21 Pacho Ramos gentoo-dev 2007-02-02 19:46:31 UTC
I mark it as FIXED, I will reopen it if it is needed.