mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-01-27 17:37:18 +01:00
logmngr: make sure fluent-bit keeps trying to respawn
for example, if proto is udp in syslog output and url is not resolved then fluent-bit stops, we want to make sure that eventually when the url can be resolved then logging resumes
This commit is contained in:
parent
c0384a753a
commit
3535408d7e
1 changed files with 6 additions and 1 deletions
|
|
@ -544,6 +544,11 @@ logmngr_init() {
|
|||
procd_set_param command $PROG -c ${CONF_FILE}
|
||||
procd_set_param file ${CONF_FILE}
|
||||
fi
|
||||
procd_set_param respawn
|
||||
|
||||
# if process finishes later than respawn_threshold, it is restarted unconditionally, regardless of error code
|
||||
# wait 5 seconds before respawning
|
||||
# for example, if proto is udp in syslog output and url is not resolved then fluent-bit stops
|
||||
# this is done to make sure that eventually when the url can be resolved then logging resumes
|
||||
procd_set_param respawn ${respawn_threshold:-1} ${respawn_timeout:-5}
|
||||
procd_close_instance
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue