Public bug reported:

Description:    Ubuntu 8.04.2
Release:        8.04

apache2.2-common 2.2.8-1ubuntu0.3

What I expect to happen: When running apache2ctl status, I expect that
an error such as "connection refused" will cause the script to exit with
a !0 return code.

What happens instead:

http://www.pastie.org/373460

The problem is at apache2ctl's line 112:

status)
    $LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } '
    ;;

It's a bashism, but you want to set ERROR after this pipeline to
PIPESTATUS array's 0th element, since that awk command is pretty much
always going to exit 0. This is probably upstream, but I reported it
here anyways... since apache is cross-many platforms that may not have
bash, I doubt they'd go for using the pipestatus array.

** Affects: apache (Ubuntu)
     Importance: Undecided
         Status: New

-- 
apache2ctl returns 0 on connection refused
https://bugs.launchpad.net/bugs/322461
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to