summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-p2p/mldonkey/ChangeLog6
-rw-r--r--net-p2p/mldonkey/files/mldonkey.initd22
2 files changed, 6 insertions, 22 deletions
diff --git a/net-p2p/mldonkey/ChangeLog b/net-p2p/mldonkey/ChangeLog
index 0f778ef27385..dae7bea548ed 100644
--- a/net-p2p/mldonkey/ChangeLog
+++ b/net-p2p/mldonkey/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-p2p/mldonkey
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v 1.248 2011/09/17 18:02:22 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v 1.249 2011/10/23 18:22:51 polynomial-c Exp $
+
+ 23 Oct 2011; Lars Wendler <polynomial-c@gentoo.org> files/mldonkey.initd:
+ non-maintainer commit: Replaced deprecated opts variable in init script (bug
+ #384453).
*mldonkey-3.1.0 (17 Sep 2011)
diff --git a/net-p2p/mldonkey/files/mldonkey.initd b/net-p2p/mldonkey/files/mldonkey.initd
index 79ba3eeb499e..7a007dededf0 100644
--- a/net-p2p/mldonkey/files/mldonkey.initd
+++ b/net-p2p/mldonkey/files/mldonkey.initd
@@ -1,6 +1,6 @@
#!/sbin/runscript
-opts="reload slow fast info"
+extra_started_commands="reload slow fast info"
MLDONKEY_BINARY=${MLDONKEY_BINARY:-/usr/bin/mlnet}
MLDONKEY_TIMEOUT=${TIMEOUT:-10}
@@ -79,11 +79,6 @@ restart() {
}
reload() {
- if ! service_started "${SVCNAME}"; then
- eerror "${SVCNAME} is not started"
- return 1
- fi
-
ebegin "Reloading ${SVCNAME}"
start-stop-daemon --stop --signal HUP --oknodo \
--exec "${MLDONKEY_BINARY}" --pidfile /var/run/"${SVCNAME}".pid
@@ -91,11 +86,6 @@ reload() {
}
slow() {
- if ! service_started "${SVCNAME}"; then
- eerror "${SVCNAME} is not started"
- return 1
- fi
-
ebegin "Reducing bandwidth to ${LOW_DOWN}k/${LOW_UP}k"
setup_uri
wget --spider --timeout="${MLDONKEY_TIMEOUT}" \
@@ -106,11 +96,6 @@ slow() {
}
fast() {
- if ! service_started "${SVCNAME}"; then
- eerror "${SVCNAME} is not started"
- return 1
- fi
-
ebegin "Increasing bandwidth to ${HIGH_DOWN}k/${HIGH_UP}k"
setup_uri
@@ -123,11 +108,6 @@ fast() {
info() {
- if ! service_started "${SVCNAME}"; then
- eerror "${SVCNAME} is not started"
- return 1
- fi
-
setup_uri
local result=$(wget --timeout="${MLDONKEY_TIMEOUT}" \
-O - "${BASE}"/submit?q=vo 2>/dev/null | \