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.
Created attachment 25462 [details] /etc/init.d/mldonkey
reassigning
Same problem! But the attach works fine. Have you forgotten : # ebegin "Starting MLDonkey"; ;-) ???
Right.
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.
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} \
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.
*** Bug 41900 has been marked as a duplicate of this bug. ***
fixed in portage.
forgot to mark fixed...