Public bug reported:

Binary package hint: haproxy

DIST: Ubuntu 10.4.1 LTS
PACKAGE: haproxy-1.3.22-1
FILE: /etc/init.d/haproxy

There is a problem running this script - it does not do anything; fails
to start/stop/status.

There is a strange variable in line 19:
ENABLED=0
and then suspicious line 28:
test "$ENABLED" != "0" || exit 0

That line makes the script to exit every time, no metter what you set
ENABLED to (in line 19). You need to set the variable in
/etc/default/haproxy.

There are two problems:
1. IMVHO such variable as ENABLED makes little sense. One can choose to enable 
or disable services in distro-specific way.
2. the variable ENABLED is double-set, once in /etc/init.d/haproxy and then in 
included script /etc/default/haproxy (see line 25)

There is no way for someone to know what is happening without reading
source of /etc/init.d/haproxy. No documentation nor post-install scripts
mention the need for this tweak.

Yeah, sure - haproxy is for serious users, but the strenght of any public 
project is sensible defaults.
There defaults are not very sensible IMHO.

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


** Tags: haproxy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/697550

Title:
  HAProxy /etc/init.d/haproxy script fails to run by default

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to