mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-15 07:54:33 +00:00
9a1ee7ac31
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.
40 lines
922 B
C
40 lines
922 B
C
/*
|
|
* Master Worker
|
|
*
|
|
* Copyright HAProxy Technologies 2019 - William Lallemand <wlallemand@haproxy.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version
|
|
* 2 of the License, or (at your option) any later version.
|
|
*
|
|
*/
|
|
|
|
#ifndef PROTO_MWORKER_H_
|
|
#define PROTO_MWORKER_H_
|
|
|
|
#include <types/signal.h>
|
|
|
|
void mworker_proc_list_to_env();
|
|
void mworker_env_to_proc_list();
|
|
|
|
|
|
void mworker_block_signals();
|
|
void mworker_unblock_signals();
|
|
|
|
void mworker_catch_sighup(struct sig_handler *sh);
|
|
void mworker_catch_sigterm(struct sig_handler *sh);
|
|
void mworker_catch_sigchld(struct sig_handler *sh);
|
|
|
|
void mworker_accept_wrapper(int fd);
|
|
void mworker_pipe_register();
|
|
|
|
void mworker_cleanlisteners();
|
|
|
|
int mworker_child_nb();
|
|
|
|
int mworker_ext_launch_all();
|
|
|
|
|
|
#endif /* PROTO_MWORKER_H_ */
|