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-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to