Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 25462 Details for
Bug 41347
mldonkey-2.5.11: bad init 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.89 KB, created by
crusaderky
on 2004-02-12 02:28:29 UTC
(
hide
)
Description:
/etc/init.d/mldonkey
Filename:
MIME Type:
Creator:
crusaderky
Created:
2004-02-12 02:28:29 UTC
Size:
1.89 KB
patch
obsolete
>#!/sbin/runscript > >opts="start stop restart slow fast" > >depend() { > need net >} > >start() { > if [ ! -d ${BASEDIR}/${SUBDIR} ] > then > einfo "Directory ${BASEDIR}/${SUBDIR} not existing, trying to create..." > su ${USER} -c "mkdir ${BASEDIR}/${SUBDIR}" ># if [ ! -d ${BASEDIR}/${DIR} ] > if [ ! -d ${BASEDIR}/${SUBDIR} ] > then > eerror "Directory ${BASEDIR}/${SUBDIR} could not be created!" > return 1 > fi > einfo "...ok!" > fi > cd ${BASEDIR}/${SUBDIR}/ ># start-stop-daemon --quiet --start -c ${USER} \ ># -x /usr/bin/mlnet &>${LOG} & > su p2p -c /usr/bin/mlnet &>${LOG} & > > sleep 5 > if ! pgrep -u ${USER} mlnet >/dev/null > then > eerror "MLDonkey could not be started! Check logfile: ${LOG}" > fi > renice ${NICE} -u ${USER} >/dev/null > eend $? >} > >stop() { > BASE="http://" > if [[ -n ${USERNAME} && -n ${PASSWORD} ]] > then > BASE=${BASE}${USERNAME}:${PASSWORD}@ > fi > BASE=${BASE}${SERVER}:${PORT} > ebegin "Stopping mldonkey - please wait" > wget --spider ${BASE}/submit?q=close_fds -q > wget --spider ${BASE}/submit?q=save -q > wget --spider ${BASE}/submit?q=kill -q > sleep 10 > start-stop-daemon --oknodo --stop -x /usr/bin/mlnet &>/dev/null > eend $? >} > >restart() { > svc_stop > sleep 5 > svc_start >} > >slow() { > ebegin "Reducing bandwidth to ${LOW_DOWN}k/${LOW_UP}k" > > BASE="http://" > if [[ -n ${USERNAME} && -n ${PASSWORD} ]] > then > BASE=${BASE}${USERNAME}:${PASSWORD}@ > fi > BASE=${BASE}${SERVER}:${PORT} > > wget --spider ${BASE}/submit?q=set+max_hard_download_rate+${LOW_DOWN} -q > > wget --spider ${BASE}/submit?q=set+max_hard_upload_rate+${LOW_UP} -q > > eend $? >} > >fast() { > ebegin "Increasing bandwidth to ${HIGH_DOWN}k/${HIGH_UP}k" > > BASE="http://" > if [[ -n ${USERNAME} && -n ${PASSWORD} ]] > then > BASE=${BASE}${USERNAME}:${PASSWORD}@ > fi > BASE=${BASE}${SERVER}:${PORT} > > wget --spider ${BASE}/submit?q=set+max_hard_download_rate+${HIGH_DOWN} -q > > wget --spider ${BASE}/submit?q=set+max_hard_upload_rate+${HIGH_UP} -q > > eend $? >}
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 41347
: 25462