https://issues.apache.org/bugzilla/show_bug.cgi?id=46995
Summary: httpd / apachectl do not return exit codes when they
should
Product: Apache httpd-2
Version: 2.2.11
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P2
Component: Core
AssignedTo: [email protected]
ReportedBy: [email protected]
Steps to reproduce:
1. (May not be specifically required)
Compile apache 2.2.11 on Solaris 10 on i386 (VMWare), with options:
./configure --disable-actions --disable-alias --disable-asis --disable-auth
--disable-auth-basic --disable-authn-default --disable-authn-file
--disable-authz-default --disable-authz-groupfile --disable-authz-user
--disable-autoindex --disable-cgi --disable-cgid --disable-charset-lite
--disable-env --disable-imagemap --disable-include --disable-negotiation
--disable-proxy-ajp --disable-proxy-balancer --disable-proxy-ftp
--disable-setenvif --disable-status --disable-userdir --enable-proxy
--enable-proxy-connect --enable-ssl --enable-unique-id --prefix=$APACHE_ROOT
--with-pcre=$APACHE_DEPS_ROOT
2. Assuming apache is configured to start correctly, type the following
commands:
$APACHE_ROOT/bin/httpd -k start
echo $?
$APACHE_ROOT/bin/httpd -k start
echo $?
$APACHE_ROOT/bin/httpd -k stop
echo $?
$APACHE_ROOT/bin/httpd -k stop
echo $?
Note that I am starting apache twice, and stopping it twice.
Expected results:
1. The first start succeeds, and returns exit code 0
2. The second start fails, and returns nonzero exit code
3. The first stop succeeds, and returns exit code 0
4. The second stop suceeds, and returns nonzero exit code.
Actual results:
1 and 3 as expected.
Result 2 prints an error message but returns 0.
Result 4 prints an error message but returns 0.
Notes:
Replace 'httpd -k' with 'apachectl' wrapper, and the results are similar :-(
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]