public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-p2p/mldonkey/files: mldonkey.initd
@ 2011-07-26 18:35 Raul Porcel (armin76)
  0 siblings, 0 replies; 2+ messages in thread
From: Raul Porcel (armin76) @ 2011-07-26 18:35 UTC (permalink / raw
  To: gentoo-commits

armin76     11/07/26 18:35:46

  Modified:             mldonkey.initd
  Log:
  Replace chuid with user, bug #375711
  
  (Portage version: 2.1.10.7/cvs/Linux ia64)

Revision  Changes    Path
1.20                 net-p2p/mldonkey/files/mldonkey.initd

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/files/mldonkey.initd?rev=1.20&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/files/mldonkey.initd?rev=1.20&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/files/mldonkey.initd?r1=1.19&r2=1.20

Index: mldonkey.initd
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/files/mldonkey.initd,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- mldonkey.initd	17 Aug 2007 10:45:58 -0000	1.19
+++ mldonkey.initd	26 Jul 2011 18:35:46 -0000	1.20
@@ -29,7 +29,7 @@
 	ebegin "Starting ${SVCNAME}"
 	cd "${MLDONKEY_DIR}"
 	export MLDONKEY_DIR
-	start-stop-daemon --start --chuid "${USER}" --nice "${NICE}" \
+	start-stop-daemon --start --user "${USER}" --nice "${NICE}" \
 		--exec "${MLDONKEY_BINARY}" --pidfile /var/run/"${SVCNAME}".pid \
 		--background --make-pidfile
 	eend $?






^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in net-p2p/mldonkey/files: mldonkey.initd
@ 2011-10-23 18:22 Lars Wendler (polynomial-c)
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Wendler (polynomial-c) @ 2011-10-23 18:22 UTC (permalink / raw
  To: gentoo-commits

polynomial-c    11/10/23 18:22:51

  Modified:             mldonkey.initd
  Log:
  Replaced deprecated opts variable in init script (bug #384453)
  
  (Portage version: 2.2.0_alpha70/cvs/Linux x86_64)

Revision  Changes    Path
1.21                 net-p2p/mldonkey/files/mldonkey.initd

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/files/mldonkey.initd?rev=1.21&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/files/mldonkey.initd?rev=1.21&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/files/mldonkey.initd?r1=1.20&r2=1.21

Index: mldonkey.initd
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/files/mldonkey.initd,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- mldonkey.initd	26 Jul 2011 18:35:46 -0000	1.20
+++ mldonkey.initd	23 Oct 2011 18:22:51 -0000	1.21
@@ -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 @@
 }
 
 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 @@
 }
 
 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 @@
 }
 
 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 @@
 
 
 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 | \






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-23 18:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-26 18:35 [gentoo-commits] gentoo-x86 commit in net-p2p/mldonkey/files: mldonkey.initd Raul Porcel (armin76)
  -- strict thread matches above, loose matches on Subject: below --
2011-10-23 18:22 Lars Wendler (polynomial-c)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox