[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#145410: marked as done (distributed-net-pproxy: /etc/init.d/distributed-net-pproxy doesn't work properly)



Your message dated Wed, 16 Mar 2005 12:55:40 +0000
with message-id <20050316125540.GA18009@deprecation.cyrius.com>
and subject line distributed-net-pproxy removed
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 1 May 2002 15:41:04 +0000
>From sebi@seo.de Wed May 01 10:41:04 2002
Return-path: <sebi@seo.de>
Received: from wh9.tu-dresden.de (zaphod.wh9.tu-dresden.de) [141.76.120.10] (8)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 172wE3-0007W3-00; Wed, 01 May 2002 10:41:03 -0500
Received: from x1405ab.wh17.tu-dresden.de ([141.76.124.49] helo=tux.wh17.tu-dresden.de)
	by zaphod.wh9.tu-dresden.de with esmtp (Exim 3.33 #1 (Debian))
	id 172wE1-0001cy-00
	for <submit@bugs.debian.org>; Wed, 01 May 2002 17:41:01 +0200
Received: by tux.wh17.tu-dresden.de (Postfix, from userid 1000)
	id 0C2548FA3D; Wed,  1 May 2002 17:40:30 +0200 (CEST)
Date: Wed, 1 May 2002 17:40:30 +0200
From: Sebastian Klamar <sebi@seo.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: distributed-net-pproxy: /etc/init.d/distributed-net-pproxy doesn't work properly
Message-ID: <20020501154030.GA4665@tux.wh17.tu-dresden.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
User-Agent: Mutt/1.3.28i
X-Reportbug-Version: 1.50
X-PGP: 0x1E727CE6 / 9085 48BD 8332 4BFC D80C  A6CF D162 20BB 1E72 7CE6
X-Operating-System: Debian GNU/Linux woody (Kernel 2.4.13-xfs)
X-Echelon/Carnivore: Afghanistan PGP Kalaschnikow SSH aircraft carrier GPG embassy Taliban Key DoD terrorist rule the world
Delivered-To: submit@bugs.debian.org

Package: distributed-net-pproxy
Version: 319c-6
Severity: important
Tags: patch

The directives {stop|restart|reload|force-reload} really don't work.
They are unable to shutdown the pproxy.  When the script tries to stop a
running pproxy process it claims =BBnot running=AB and the process still
keeps running.

I think the problem can be resolved when removing =BB--user nobody=AB from
start-stop-daemon's param list.  The following patch does this and makes
the script work fine.

(I also introduced an informative message for the case the proxy is not
running but someone wanted to restart him.  And the all over referenced
pid file was substituted by an environmental variable.)

--- /tmp/distributed-net-pproxy	Tue Apr 23 00:00:00 2002
+++ /etc/init.d/distributed-net-pproxy	Wed May  1 17:31:32 2002
@@ -3,6 +3,7 @@
 # Start and stop the distributed.net personal proxy.
=20
 PPROXY=3D/usr/bin/distributed-net-pproxy
+PIDFILE=3D/var/run/distributed-net-pproxy.pid
=20
 test -x ${PPROXY} || exit 0
=20
@@ -15,7 +16,7 @@
 		# file, by sending signal 0, which has no effect. This=20
 		# also checks to see if there is a pid file at all, BTW.
 		if start-stop-daemon --quiet --stop --signal 0 \
-			--pidfile /var/run/distributed-net-pproxy.pid \
+			--pidfile ${PIDFILE} \
 			--name distributed-net 2>/dev/null
 		then
 			echo " already running."
@@ -25,11 +26,11 @@
 		/sbin/start-stop-daemon --start --quiet \
 			--user nobody \
 			--exec ./distributed-net-pproxy \
-			--pidfile /var/run/distributed-net-pproxy.pid \
+			--pidfile ${PIDFILE} \
 			>>/var/log/distributed-net-pproxy/distributed-net-pproxy.log \
 			2>/dev/null &
=20
-		echo $! > /var/run/distributed-net-pproxy.pid
+		echo $! > ${PIDFILE}
 		echo "."
 		;;
 	stop)
@@ -39,30 +40,30 @@
 		# This also checks to see if there is a pid file at=20
 		# all, BTW.
 		if start-stop-daemon --quiet --stop --signal 0 \
-			--pidfile /var/run/distributed-net-pproxy.pid --user nobody \
+			--pidfile ${PIDFILE} \
 			--name distributed-net 2>/dev/null
 		then
 			start-stop-daemon --quiet --stop \
 				--exec ${PPROXY} \
-				--pidfile /var/run/distributed-net-pproxy.pid \
-				--user nobody \
+				--pidfile ${PIDFILE} \
 				--name distributed-net
 			echo "."
 		else
 			echo " not running."
 		fi
=20
-		rm -f /var/run/distributed-net-pproxy.pid
+		rm -f ${PIDFILE}
 		;;
 	restart)
 		if start-stop-daemon --quiet --stop --signal 0 \
-			--pidfile /var/run/distributed-net-pproxy.pid \
-			--name distributed-net \
-			--user nobody 2>/dev/null
+			--pidfile ${PIDFILE} \
+			--name distributed-net 2>/dev/null
 		then
 			$0 stop
 			sleep 2
 			$0 start
+		else
+			echo "distributed.net personal proxy not running."
 		fi
 		;;
 	force-reload)
@@ -75,13 +76,12 @@
 		# This also checks to see if there is a pid file at=20
 		# all, BTW.
 		if start-stop-daemon --quiet --stop --signal 0 \
-			--pidfile /var/run/distributed-net-pproxy.pid --user nobody \
+			--pidfile ${PIDFILE} \
 			--name distributed-net 2>/dev/null
 		then
 			start-stop-daemon --quiet --stop --signal 1 \
 				--exec ${PPROXY} \
-				--pidfile /var/run/distributed-net-pproxy.pid \
-				--user nobody \
+				--pidfile ${PIDFILE} \
 				--name distributed-net
 			echo "done."
 		else

-- System Information
Debian Release: woody
Architecture: i386
Kernel: Linux tux 2.4.13-xfs #1 Wed Oct 31 08:51:25 CET 2001 i686
Locale: LANG=3Dde_DE@euro, LC_CTYPE=3Dde_DE@euro


SEBi

--=20
          PGP Key: 0x1E727CE6 2001-11-14 =B7 expires 2002-11-09
  Key fingerprint: 9085 48BD 8332 4BFC D80C  A6CF D162 20BB 1E72 7CE6
    http://gommbjudda.wh17.tu-dresden.de/~sebi/Sebastian_Klamar.asc
         or via "finger -l sebastian.klamar@inf.tu-dresden.de"

---------------------------------------
Received: (at 145410-done) by bugs.debian.org; 16 Mar 2005 12:55:57 +0000
>From tbm@cyrius.com Wed Mar 16 04:55:57 2005
Return-path: <tbm@cyrius.com>
Received: from sorrow.cyrius.com [65.19.161.204] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DBY43-0001hm-00; Wed, 16 Mar 2005 04:55:55 -0800
Received: by sorrow.cyrius.com (Postfix, from userid 10)
	id EBC5364D40; Wed, 16 Mar 2005 12:55:54 +0000 (UTC)
Received: by deprecation.cyrius.com (Postfix, from userid 1000)
	id CE2974EDA4; Wed, 16 Mar 2005 12:55:40 +0000 (GMT)
Date: Wed, 16 Mar 2005 12:55:40 +0000
From: Martin Michlmayr <tbm@cyrius.com>
To: 134599-done@bugs.debian.org, 145410-done@bugs.debian.org,
	161590-done@bugs.debian.org, 163468-done@bugs.debian.org,
	178463-done@bugs.debian.org, 181473-done@bugs.debian.org,
	241112-done@bugs.debian.org
Subject: distributed-net-pproxy removed
Message-ID: <20050316125540.GA18009@deprecation.cyrius.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040907i
Delivered-To: 145410-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-2.0 required=4.0 tests=BAYES_00,SORTED_RECIPS 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 2

distributed-net-pproxy has been removed from Debian.  It has not been
maintained and it was out of date so severly that it didn't properly
work anymore.
-- 
Martin Michlmayr
http://www.cyrius.com/



Reply to: