Skip to content

Commit 8bde20a

Browse files
committed
supervisor: new supervisor (parent-proces) mode
Signed-off-by: Eduardo Silva <[email protected]>
1 parent fecd8ca commit 8bde20a

File tree

4 files changed

+739
-1
lines changed

4 files changed

+739
-1
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#ifndef FLB_SUPERVISOR_H
2+
#define FLB_SUPERVISOR_H
3+
4+
#include <fluent-bit/flb_info.h>
5+
6+
#ifdef __cplusplus
7+
extern "C" {
8+
#endif
9+
10+
typedef int (*flb_supervisor_entry_fn)(int argc, char **argv);
11+
12+
int flb_supervisor_requested(int argc, char **argv);
13+
int flb_supervisor_run(int argc, char **argv, flb_supervisor_entry_fn entry);
14+
void flb_supervisor_child_update_grace(int grace, int grace_input);
15+
void flb_supervisor_child_signal_shutdown(int grace, int grace_input);
16+
17+
#ifdef __cplusplus
18+
}
19+
#endif
20+
21+
#endif

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ set(src
8585
flb_log_event_encoder_dynamic_field.c
8686
flb_processor.c
8787
flb_reload.c
88+
flb_supervisor.c
8889
flb_msgpack_append_message.c
8990
flb_notification.c
9091
flb_lock.c

0 commit comments

Comments
 (0)