[Bug 192430] New: net/haproxy: rc.d script kills non-related processes

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Aug 6 11:53:51 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192430

            Bug ID: 192430
           Summary: net/haproxy:  rc.d script kills non-related processes
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: renchap at cocoa-x.com

http://svnweb.freebsd.org/ports?view=revision&revision=329298

This commit changes the reload command to handle multiple haproxy processes.
We run multiple haproxy instances, each one with a different configuration
file, on the same server, and when we reload the main haproxy (handled by the
default rc.d script) all other haproxy processes PIDs are used for haproxy -sf,
killing all running instances.

It is a very dangerous behavior as the rc.d script kills processes not related
to it. When using nbproc > 1, haproxy writes all the PIDs in the pidfile. The
reload command can be changed to something like :
  ${command} ${haproxy_flags} -st $( cat $haproxy_pidfile )

This is what the debian init.d script does :
http://anonscm.debian.org/cgit/pkg-haproxy/haproxy.git/tree/debian/haproxy.init#n69

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list