Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27005 - mldonkey-2.5.3-r1 start/stop-script not consistent with resp to host definition
Summary: mldonkey-2.5.3-r1 start/stop-script not consistent with resp to host definition
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Caleb Tennis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-20 13:20 UTC by Udo Beckmann
Modified: 2003-09-10 19:53 UTC (History)
1 user (show)

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


Attachments
corrected and improved start script (mldonkey.initd,1.72 KB, text/plain)
2003-08-22 11:11 UTC, Julian Hoch
Details
corresponding config file (mldonkey.confd,838 bytes, text/plain)
2003-08-22 11:13 UTC, Julian Hoch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Udo Beckmann 2003-08-20 13:20:45 UTC
within /etc/init.d/mldonkey wget is use do communicat with mlnet. There are 
line like 
 
wget --spider http://$DONKSRV:4080/submit?q=close_fds -q 
 
and lines like 
 
wget --spider 
http://localhost:${MLPORT}/submit?q=set+max_hard_download_rate+${MLLOWDOWN} -q 
 
The variable $MLPORT is defined in /etc/conf.d/mldonkey. It's default value is 
4080. The variable DONKSRV _is not_ defined in /etc/conf.d/mldonkey. 
 
The start/stop script should either consistently use 
 
http://localhost:${MLPORT} 
or 
http://$DONKSERV:{$MLPORT} 
 
The 2nd alternative is mor flexible because it allows definitions like 
 
DONKSERV=username:password@localhost 
 
in /etc/conf.d/mldonkey. Using DONKSERV this way lets "/etc/init.d/mldonkey 
slow" and "/etc/init.d/mldonkey fast" work in case you don't use the default 
user (admin, empty password) to communicate with mlnet. OK, this method also 
isn't very secure but might be acceptable on desktop environments
Comment 1 Julian Hoch 2003-08-22 11:11:58 UTC
Created attachment 16465 [details]
corrected and improved start script

fixed inconsistency and added support for user/password
Comment 2 Julian Hoch 2003-08-22 11:13:18 UTC
Created attachment 16466 [details]
corresponding config file

varnames changed, includes now option for username+password
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2003-09-10 19:53:05 UTC
now in portage (same ebuild)