Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109469 - /etc/init.d/mldonkey doesnt obey variables given in /etc/conf.d/mldonkey (mldonkey 2.6.5)
Summary: /etc/init.d/mldonkey doesnt obey variables given in /etc/conf.d/mldonkey (mld...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-16 06:30 UTC by Damian Szeluga
Modified: 2005-10-20 16:40 UTC (History)
0 users

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


Attachments
/etc/init.d/mldonkey (mldonkey,2.98 KB, text/plain)
2005-10-18 07:23 UTC, Marcin Kryczek (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Damian Szeluga 2005-10-16 06:30:28 UTC
in /etc/conf.d/mldonkey i've set BASEDIR="/data/" and SUBDIR="p2p". when i start
mldonkey daemon using /etc/init.d/mldonkey start i get
cocaine ~ # /etc/init.d/mldonkey start
 * Caching service dependencies ...                                    [ ok ] 
 * Starting mldonkey ...
 * MLDonkey could not be started! Check logfile: /var/log/mldonkey.log [ !! ]
cat /vat/log/mldonkey.log gives:
cocaine ~ # cat /var/log/mldonkey.log
2005/10/16 15:25:21 Starting MLDonkey 2.6.5 ...
2005/10/16 15:25:21 Language EN, locale ANSI_X3.4-1968
2005/10/16 15:25:21 MLDonkey is working in /data/.mldonkey
2005/10/16 15:25:21 Exception (mkdir failedon /data/.mldonkey: Permission
denied) trying to create dir /data/.mldonkey
mkdir /data/.mldonkey should not happen, because i changed default value of
BASEDIR and SUBDIR.
it also happened on mldonkey 2.6.4-* versions..while i was using <=2.6.4
everything was working fine

Reproducible: Always
Steps to Reproduce:
1. change BASEDIR and SUBDIR in /etc/conf.d/mldonkey
2. start mldonkey daemon using /etc/init.d/mldonkey start




cocaine ~ # emerge info
Portage 2.0.53_rc5 (default-linux/x86/2005.1, gcc-3.4.4,
glibc-2.3.5.20050722-r0, 2.6.12-cocaine1 i686)
=================================================================
System uname: 2.6.12-cocaine1 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.12.0_pre9
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/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/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/var/tmp/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv"
GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/"
LANG="pl_PL"
LC_ALL="pl_PL"
LINGUAS="pl"
MAKEOPTS="-j2"
PKGDIR="/var/tmp/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X alsa apache2 apm avi bash-completion berkdb bitmap-fonts cdr crypt
cups divx4linux eds emboss encode esd fam fbcon flac foomaticdb fortran gd gdbm
gif gpm gstreamer gtk gtk2 imagemagick imlib jpeg libg++ libwww mad matroska
mikmod mmx motif mp3 mpeg mysql ncurses nls nocd nptl nptlonly nvidia ogg
oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl
slang spell sse ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode
vhosts vorbis x86 xml2 xv xvid zlib linguas_pl userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 1 jan 2005-10-17 11:23:19 UTC
 /etc/init.d/mldonkey don
Comment 2 jan 2005-10-17 11:23:19 UTC
 /etc/init.d/mldonkey don´t start mlnet

p2p is the user for mlnet

so i try as user p2p to start mlnet and i goes.

but i can allways start with the mldonkey script mlnet.
but nothing happens...no log-file..to process

gentoo-2.6.9-r4
mldonkey-2.6.4-r2
Comment 3 jan 2005-10-17 11:24:20 UTC
(In reply to comment #1)
>  /etc/init.d/mldonkey don
Comment 4 jan 2005-10-17 11:24:20 UTC
(In reply to comment #1)
>  /etc/init.d/mldonkey don´t start mlnet
> 
> p2p is the user for mlnet
> 
> so i try as user p2p to start mlnet and i goes.
> 
> i works always with the mldonkey script to start mlnet.
> but now nothing happens...no log-file..to process
> 
> gentoo-2.6.9-r4
> mldonkey-2.6.4-r2

Comment 5 Andrew Sayman 2005-10-17 20:36:08 UTC
I just installed this with these use flags:  -batch -doc +gd -gtk -guionly
+mozilla -threads and I'm not having this problem at all. Have you run etc-update?
Comment 6 Andrew Sayman 2005-10-17 20:40:19 UTC
Forgot emerge info guys, sorry. 

Gentoo Base System version 1.6.13
Portage 2.0.51.22-r3 (default-linux/x86/2004.2/gcc34, gcc-3.4.4, glibc-2.3.5-r2,
2.6.12.5 i686)
=================================================================
System uname: 2.6.12.5 i686 AMD Athlon(tm) XP 2600+
ccache version 2.3 [enabled]
dev-lang/python:     2.2.3-r5, 2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.8.1-r1, 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -ffast-math"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -ffast-math"
DISTDIR="/mnt/new0/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.blueyonder.co.uk
http://ftp.heanet.ie/pub/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/"
LANG="en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/new0/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aalib acpi adns alsa apache2 avi bash-completion
berkdb bitmap-fonts bonobo cdr crypt cups curl dba dbus dedicated dvd dvdread
eds emboss encode flac font-server foomaticdb fortran gcj gd gd-external gdbm
gif gnome gnomedb gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap
imlib jack java jfs jikes joystick jpeg junit ldap libg++ libwww maildir mikmod
mmx mmxext mng motif mozilla mp3 mpeg mplayer mysql ncurses nptl nvidia objc
offensive ogg oggvorbis openal opengl oss pam pdflib perl png python qt
quicktime readline real reiserfs ruby samba sasl sdl session slang snmp speex
spell sse ssl startup-notification subtitles svg svga tcltk tcpd tetex theora
tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l vhosts
vorbis win32codecs xanim xine xinerama xml xml2 xmms xosd xpm xprint xrandr xv
xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Comment 7 Marcin Kryczek (RETIRED) gentoo-dev 2005-10-18 07:23:05 UTC
Created attachment 70940 [details]
/etc/init.d/mldonkey

the init procedure of mldonkey has in fact been changed a bit, however the old
script should work and i do not know why it doesn't in some environments.
i'm attaching the new start script, which is 100% compatible with new start
procedure. it seems to work on my system, but i'd like it to be tested by
others before i'll commit it to the tree.
please - replace /etc/init.d/mldonkey with the file from attachment and let me
know if that fix the problem (and if you havn't other problems with it).
you should remove BASEDIR and SUBDIR from conf.d/mldonkey and add MLDONKEY_DIR
variable, which should be set as (current) $BASEDIR/$SUBDIR (if you won't do
it,  you'll get notice while starting mldonkey, but everything should work fine
anyway)
Comment 8 Marcin Kryczek (RETIRED) gentoo-dev 2005-10-20 16:40:31 UTC
new script in the tree