Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41347 - mldonkey-2.5.11: bad init script
Summary: mldonkey-2.5.11: bad init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High major
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
: 41900 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-12 02:27 UTC by crusaderky
Modified: 2004-02-26 11:14 UTC (History)
6 users (show)

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


Attachments
/etc/init.d/mldonkey (mldonkey,1.89 KB, text/plain)
2004-02-12 02:28 UTC, crusaderky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crusaderky 2004-02-12 02:27:20 UTC
the init script for mldonkey-2.5.11 has two SERIOUS bugs; one is a mispelling when creating the directory and another one is an error in start-stop-deamon that prevents mldonkey to start, saying that it can't do mkdir /root/.mldonkey.

I've attached a fixed version using su instead of start-stop-deamon.
Comment 1 crusaderky 2004-02-12 02:28:29 UTC
Created attachment 25462 [details]
/etc/init.d/mldonkey
Comment 2 Benjamin Coles 2004-02-12 05:50:09 UTC
reassigning
Comment 3 Detro 2004-02-13 03:10:38 UTC
Same problem!
But the attach works fine.
Have you forgotten :

# ebegin "Starting MLDonkey";

;-) ???
Comment 4 crusaderky 2004-02-13 03:38:17 UTC
Right.
Comment 5 Ricardo Dávila 2004-02-15 17:28:02 UTC
New development version of mldonkey core needs HOME var set, or it will try change
to root home and make .mldonkey dir, so simply "export HOME=${BASEDIR}" will
fix the problem.
Comment 6 Gerald Tan 2004-02-16 12:18:05 UTC
This is what I changed to fix:
From:
        start-stop-daemon --quiet --start -c ${USER}  \
To:
        HOME=/home/${USER} start-stop-daemon --quiet --start -c ${USER}  \
Comment 7 Ian Truelsen 2004-02-18 04:21:25 UTC
Assuming that I don't want to kluge the init script after every update, how do I set the HOME variable so that mldonkey can be run at boot? I tried adding it to /etc/profile, but it broke my user login.
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-23 10:38:37 UTC
*** Bug 41900 has been marked as a duplicate of this bug. ***
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-24 03:20:11 UTC
fixed in portage.
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-26 11:14:14 UTC
forgot to mark fixed...