Debian Bug report logs - #329288
apache2-common: apache2ctl uses non-posix ulimit command

version graph

Package: apache2-common; Maintainer for apache2-common is (unknown);

Reported by: Michael Prokop <mika@grml.org>

Date: Tue, 20 Sep 2005 22:48:04 UTC

Severity: normal

Found in version apache2-common/2.0.54-5

Done: Tollef Fog Heen <tfheen@err.no>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Apache Maintainers <debian-apache@lists.debian.org>:
Bug#329288; Package apache2-common. Full text and rfc822 format available.

Acknowledgement sent to Michael Prokop <mika@grml.org>:
New Bug report received and forwarded. Copy sent to Debian Apache Maintainers <debian-apache@lists.debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Michael Prokop <mika@grml.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apache2-common: apache2ctl uses non-posix ulimit command
Date: Wed, 21 Sep 2005 00:34:42 +0200
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-



Reply sent to Tollef Fog Heen <tfheen@err.no>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Michael Prokop <mika@grml.org>:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #10 received at 329288-done@bugs.debian.org (full text, mbox):

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
Date: Tue, 13 Dec 2005 12:11:18 +0100
* 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      : :' :
                                                                      `. `' 
                                                                        `-  



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 19 Jun 2007 01:25:32 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 13:21:55 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.