Commit f651e22d authored by Ophélie Gagnard's avatar Ophélie Gagnard

dracut.module: Add time for fluent-bit to initialize.

parent 35ca424f
...@@ -9,6 +9,7 @@ log_file=/var/log/metadata_collect.log ...@@ -9,6 +9,7 @@ log_file=/var/log/metadata_collect.log
/sbin/fluent-bit -e /etc/libfluentbit_wendelin.so -c /etc/flb.conf & /sbin/fluent-bit -e /etc/libfluentbit_wendelin.so -c /etc/flb.conf &
flb_pid=$! flb_pid=$!
sleep 1 # let fluent-bit be ready to listen to the log file
echo "{beginning_date: \"$(date)\"}" >> $log_file echo "{beginning_date: \"$(date)\"}" >> $log_file
/sbin/metadata-collect-agent $NEWROOT/usr/bin $log_file /sbin/metadata-collect-agent $NEWROOT/usr/bin $log_file
/sbin/metadata-collect-agent $NEWROOT/usr/sbin $log_file /sbin/metadata-collect-agent $NEWROOT/usr/sbin $log_file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment