logmngr: make sure fluent-bit keeps trying to respawn

This commit is contained in:
Vivek Dutta 2026-01-15 12:58:33 +05:30 committed by IOPSYS Dev
parent 6de9878b42
commit a36fcbfeb1
No known key found for this signature in database

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
}