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

Bug#246365: marked as done (apache-perl 1.3.29.0.2-4 (testing) rc flaw)



Your message dated Thu, 29 Apr 2004 17:10:26 +0100
with message-id <20040429161026.GK22558@parcelfarce.linux.theplanet.co.uk>
and subject line Bug#246365: apache-perl  1.3.29.0.2-4 (testing) rc flaw
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; 28 Apr 2004 16:10:14 +0000
>From kitchen_506@hotmail.com Wed Apr 28 09:10:14 2004
Return-path: <kitchen_506@hotmail.com>
Received: from bay17-f38.bay17.hotmail.com (hotmail.com) [64.4.43.88] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BIrdW-0008Qo-00; Wed, 28 Apr 2004 09:10:14 -0700
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
	 Wed, 28 Apr 2004 08:58:33 -0700
Received: from 68.2.158.76 by by17fd.bay17.hotmail.msn.com with HTTP;
	Wed, 28 Apr 2004 15:58:33 GMT
X-Originating-IP: [68.2.158.76]
X-Originating-Email: [kitchen_506@hotmail.com]
X-Sender: kitchen_506@hotmail.com
From: "Kit Chen" <kitchen_506@hotmail.com>
To: submit@bugs.debian.org
Bcc: 
Subject: apache-perl  1.3.29.0.2-4 (testing) rc flaw
Date: Wed, 28 Apr 2004 07:58:33 -0800
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Message-ID: <[🔎] BAY17-F38Ti96LPmcGp000d7bf9@hotmail.com>
X-OriginalArrivalTime: 28 Apr 2004 15:58:33.0701 (UTC) FILETIME=[A886D150:01C42D39]
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.8 required=4.0 tests=FROM_ENDS_IN_NUMS,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 1

Package: apache-perl
Version: 1.3.29.0.2-4

(testing build)

I had occasion to run

/etc/init.d/apache-perl reload

from cron and it failed claiming it couldn't find start-stop-daemon.

The cron email said:
----------
Reloading apache-perl configuration/etc/init.d/apache-perl: line 64: 
start-stop-daemon: command not found
----------

host:/# egrep -n start-stop-daemon /etc/init.d/apache-perl
52:    $ENV start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON > 
/dev/null
57:    start-stop-daemon --stop --pidfile $PIDFILE --oknodo
64:    start-stop-daemon --stop --pidfile $PIDFILE --signal USR1
70:    start-stop-daemon --stop --pidfile $PIDFILE --oknodo --retry 30
72:    $ENV start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON > 
/dev/null
78:    if ! start-stop-daemon -q --stop --pidfile $PIDFILE --signal HUP; 
then
79:     $ENV start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON > 
/dev/null

My assumption is that you need $ENV on lines 57 64 70 78 to resolve this.

Thank you for your time and attention.

_________________________________________________________________
MSN Toolbar provides one-click access to Hotmail from any Web page ? FREE 
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/


---------------------------------------
Received: (at 246365-done) by bugs.debian.org; 29 Apr 2004 16:10:28 +0000
>From willy@www.linux.org.uk Thu Apr 29 09:10:28 2004
Return-path: <willy@www.linux.org.uk>
Received: from parcelfarce.linux.theplanet.co.uk (www.linux.org.uk) [195.92.249.252] (93)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BJE7I-0008At-00; Thu, 29 Apr 2004 09:10:28 -0700
Received: from willy by www.linux.org.uk with local (Exim 4.22)
	id 1BJE7G-00010G-So; Thu, 29 Apr 2004 17:10:26 +0100
Date: Thu, 29 Apr 2004 17:10:26 +0100
From: Matthew Wilcox <willy@debian.org>
To: Kit Chen <kitchen_506@hotmail.com>
Cc: willy@debian.org, 246365-done@bugs.debian.org
Subject: Re: Bug#246365: apache-perl  1.3.29.0.2-4 (testing) rc flaw
Message-ID: <20040429161026.GK22558@parcelfarce.linux.theplanet.co.uk>
References: <[🔎] BAY17-F13BjgEG4XnhY000e1429@hotmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[🔎] BAY17-F13BjgEG4XnhY000e1429@hotmail.com>
User-Agent: Mutt/1.4.1i
Sender: <willy@www.linux.org.uk>
Delivered-To: 246365-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 1

On Thu, Apr 29, 2004 at 05:58:45AM -0800, Kit Chen wrote:
> >Sounds like you need to add /sbin and /usr/sbin to your PATH when running 
> >things from cron.
> 
> Oh, sure, that'll fix it too, an in fact I have done that.
> 
> But it was the consistency hobgoblin that was biting me.
> 
> % egrep -n ENV\|start-stop /etc/init.d/apache-perl
> 13:ENV="env -i LANG=C PATH=/bin:/usr/bin:/sbin:/usr/sbin"
> 30:    APACHECTL="$ENV $APACHECTL"
> 52:    $ENV start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON > 
> /dev/null
> 57:    start-stop-daemon --stop --pidfile $PIDFILE --oknodo
> 
> One wonders why something that's obviously tweaking the PATH  (much as you 
> suggest) and in the script already is not *consistently* applied to every 
> instance it might need to be.  That's the bug, imho,  not a problem in the 
> cron invocation environment.  :-)

Ah, this is where you are mistaken in the reason for the use of ENV ;-)
It is in order to clear the PATH and LANG variables to their default
settings and not leak any other variables from root's environment into
apache's environment.

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain



Reply to: