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:
Mohd Husaam Mehdi 2026-01-15 12:40:38 +05:30
parent c0384a753a
commit 3535408d7e

View file

@ -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
}