Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 10349 Details for
Bug 18934
Additions to the mldonkey ebuild (init.d script)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/etc/init.d/mldonkey
mldonkey (text/plain), 1.56 KB, created by
Sam Cole
on 2003-04-07 18:33:18 UTC
(
hide
)
Description:
/etc/init.d/mldonkey
Filename:
MIME Type:
Creator:
Sam Cole
Created:
2003-04-07 18:33:18 UTC
Size:
1.56 KB
patch
obsolete
>#!/sbin/runscript ># ># mldonkeyd This shell script takes care of starting and stopping ># the mldonkey file-sharing client. ># ># description: mldonkey filesharing client. ># processname: mldonkey > ># Script by UnknownQ who took it from Christoph who, in turn, took it from ># the MLdonkey World (mldonkey.berlios.de) download section. I love open ># source! >depend() { > need net >} >start(){ > ebegin $"Starting MLdonkey" > cd ${ddir} > # Remove old servers > rm -Rf servers.ini* > > # Remove tmp files > rm -Rf *.tmp > > # you should not change this lines... > ${sudo} -u ${user} ${bin} > /dev/null 2>&1 & > > ${sleep} 5 > ${renice} ${nice_level} -u ${user} > /dev/null > > # Overnet Support > #OVER_IP1=resolveip overnet.dyndns.org | $awk '{print $6}' > #OVER_PR1=4665 > #OVER_IP2=Resolveip fudge.punkcookies.com | $awk '{print $6}' > #OVER_PR2=12000 > #boot $OVER_IP1 $OVER_PR1 > #boot $OVER_IP2 $OVER_PR2 > > # you can change or add commands above the first STOPHERE and q > # > # open Connection to telnet interface > sh -c "${nc} localhost 4000 > /dev/null <<STOPHERE > clh > n 209.126.214.34[4661] > n 195.112.128.222[6667] > n 193.111.198.137[4242] > n 193.111.198.138[4242] > n 193.111.198.139[4242] > n 194.97.40.162[4242] > ovweb > q > STOPHERE" >} >stop(){ > sh -c "$nc localhost 4000 > /dev/null <<STOPHERE > commit > close_fds > kill > STOPHERE" > # better sleep a while, before killing > $sleep 10 > > # kill mldonkey if it is still running > ps ax |$grep $ddir/$bin |$grep -v $grep |$awk '{print "kill" $1}'| sh > ebegin $"Stopping $prog" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 18934
:
10349
|
10350
|
11775
|
11776
|
11777