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

Bug#329288: marked as done (apache2-common: apache2ctl uses non-posix ulimit command)



Your message dated Tue, 13 Dec 2005 12:11:18 +0100
with message-id <87y82pjlpl.fsf@thosu.err.no>
and subject line Bug#329288: apache2-common: apache2ctl uses non-posix ulimit command
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; 20 Sep 2005 22:34:49 +0000
>From mika@grml.org Tue Sep 20 15:34:49 2005
Return-path: <mika@grml.org>
Received: from proxy.vc-graz.ac.at [193.171.121.30] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EHqhN-00017g-00; Tue, 20 Sep 2005 15:34:49 -0700
Received: from grml.vc-graz.ac.at (mika.vc-graz.ac.at [193.171.126.55])
	(authenticated bits=0)
	by proxy.vc-graz.ac.at (8.13.1/8.13.1) with ESMTP id j8KMYg7o004572
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO);
	Wed, 21 Sep 2005 00:34:42 +0200 (MEST)
Received: by grml.vc-graz.ac.at (Postfix, from userid 1000)
	id 063184AC130; Wed, 21 Sep 2005 00:34:42 +0200 (CEST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Michael Prokop <mika@grml.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apache2-common: apache2ctl uses non-posix ulimit command
X-Mailer: reportbug 3.17
Date: Wed, 21 Sep 2005 00:34:42 +0200
Message-Id: <20050920223442.063184AC130@grml.vc-graz.ac.at>
X-Virus-Scanned: ClamAV version 0.87, clamav-milter version 0.87 on proxy.vc-graz.ac.at
X-Virus-Status: Clean
Delivered-To: submit@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-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: apache2-common
Version: 2.0.54-5
Severity: normal


Line 64 of /usr/sbin/apache2ctl:

ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`"

Test:

% bash -c 'ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`" ; echo $ULIMIT_MAX_FILES'
ulimit -S -n 1024
% zsh -c 'ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`" ; echo $ULIMIT_MAX_FILES'
ulimit -S -n 1024
% sh -c 'ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`" ; echo $ULIMIT_MAX_FILES'
zsh: command not found: ulimit
ulimit -S -n

Using zsh as /bin/sh results in:

# /etc/init.d/apache2 start
Starting web server: Apache2/usr/sbin/apache2ctl:1: command not found: ulimit
/usr/sbin/apache2ctl:70: command not found: ulimit

AFAICS this ulimit command is not part of IEEE Std 1003.1:
http://www.opengroup.org/onlinepubs/009695399/utilities/ulimit.html

Using #!/bin/bash in the shebang-line fixes the problem.

regards,
-mika-

---------------------------------------
Received: (at 329288-done) by bugs.debian.org; 13 Dec 2005 11:12:00 +0000
>From tfheen@err.no Tue Dec 13 03:12:00 2005
Return-path: <tfheen@err.no>
Received: from c5100bc63.inet.catch.no ([81.0.188.99] helo=vawad.err.no)
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1Em84e-0002cr-FF
	for 329288-done@bugs.debian.org; Tue, 13 Dec 2005 03:12:00 -0800
Received: from c5100bc62.inet.catch.no ([81.0.188.98] helo=thosu.err.no)
	by vawad.err.no with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24)
	(Exim 4.34)
	id 1Em84b-0000yw-Li; Tue, 13 Dec 2005 12:11:58 +0100
Received: by thosu.err.no (Postfix, from userid 1000)
	id 7644657C79; Tue, 13 Dec 2005 12:11:18 +0100 (CET)
From: Tollef Fog Heen <tfheen@err.no>
To: Michael Prokop <mika@grml.org>
Cc: 329288-done@bugs.debian.org
Subject: Re: Bug#329288: apache2-common: apache2ctl uses non-posix ulimit command
Organization: Private
References: <20050920223442.063184AC130@grml.vc-graz.ac.at>
Mail-Copies-To: never
Date: Tue, 13 Dec 2005 12:11:18 +0100
In-Reply-To: <20050920223442.063184AC130@grml.vc-graz.ac.at> (Michael Prokop's
	message of "Wed, 21 Sep 2005 00:34:42 +0200")
Message-ID: <87y82pjlpl.fsf@thosu.err.no>
User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
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-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

* Michael Prokop 

| Using zsh as /bin/sh results in:

using zsh as /bin/sh is not supported, it's not a POSIX compatible
shell.

-- 
Tollef Fog Heen                                                        ,''`.
UNIX is user friendly, it's just picky about who its friends are      : :' :
                                                                      `. `' 
                                                                        `-  



Reply to: