You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2010/10/12 22:34:24 UTC

DO NOT REPLY [Bug 50082] New: apachectl status returns incorrect exit code

https://issues.apache.org/bugzilla/show_bug.cgi?id=50082

           Summary: apachectl status returns incorrect exit code
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: brett.okken.os@gmail.com


apachectl status returns 0 regardless if httpd is running or not.

A message indicating failure is written to console when httpd is down:
Alert!: Unable to connect to remote host
lynx: Can't access startfile http://localhots/server-status

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50082] apachectl status returns incorrect exit code

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50082

--- Comment #3 from Brett Okken <br...@gmail.com> 2010-12-13 17:43:57 EST ---
What is the status of this? Were there any objections after stewing?

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50082] apachectl status returns incorrect exit code

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50082

--- Comment #2 from Brett Okken <br...@gmail.com> 2010-10-13 21:47:43 EDT ---
Looks like fullstatus has the same problem as well.

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50082] apachectl status returns incorrect exit code

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50082

--- Comment #1 from Eric Covener <co...@gmail.com> 2010-10-12 17:58:58 EDT ---
I wouldn't want apachectl to try to guess why lynx returned a bad status, but I
don't see any reason why it couldn't pass the return code along.  

Giving this bug 24h to stew in case there is some objection (all the branches
that actually call httpd do this)

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50082] apachectl status returns incorrect exit code

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50082

--- Comment #4 from Eric Covener <co...@gmail.com> 2010-12-13 18:00:05 EST ---
the pipe for awk in the "status" cmd makes us drop the return code anyway, so
not as straightforward to fix in a portable way

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org