Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Aug 2014 11:53:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 192430] New: net/haproxy:  rc.d script kills non-related processes
Message-ID:  <bug-192430-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: renchap@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192430-13>