]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mworker-prog: implement program for master-worker
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 1 Apr 2019 09:30:02 +0000 (11:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 1 Apr 2019 12:45:37 +0000 (14:45 +0200)
commit9a1ee7ac31c56fd7d881adf2ef4659f336e50c9f
tree86004dad0659053ae0c2feb0baf08739df66f445
parent88dc7c5de9b9a05220fd737d76f1fbe75b67405e
MEDIUM: mworker-prog: implement program for master-worker

This patch implements the external binary support in the master worker.

To configure an external process, you need to use the program section,
for example:

program dataplane-api
command ./dataplane_api

Those processes are launched at the same time as the workers.

During a reload of HAProxy, those processes are dealing with the same
sequence as a worker:

  - the master is re-executed
  - the master sends a USR1 signal to the program
  - the master launches a new instance of the program

During a stop, or restart, a SIGTERM is sent to the program.
Makefile
include/proto/mworker.h
include/types/global.h
src/haproxy.c
src/mworker-prog.c [new file with mode: 0644]
src/mworker.c