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

dracut.module: Update the module's script.

Support separated run between fluent-bit and metadata-collect-agent.
Add date for beginning and end.
parent f9bf4688
......@@ -5,6 +5,13 @@
source $NEWROOT/etc/rapid.space/get-network.sh
sed -i "s/%WENDELIN_REFERENCE%/$(cat $NEWROOT/etc/rapid.space/wendelin_reference)/g" /etc/flb.conf
/sbin/metadata-collect-agent $NEWROOT/usr/bin /sbin/fluent-bit /etc/libfluentbit_wendelin.so /etc/flb.conf /var/log/metadata_collect.log
rm /var/log/metadata_collect.log
/sbin/metadata-collect-agent $NEWROOT/usr/sbin /sbin/fluent-bit /etc/libfluentbit_wendelin.so /etc/flb.conf /var/log/metadata_collect.log
log_file=/var/log/metadata_collect.log
/sbin/fluent-bit -e /etc/libfluentbit_wendelin.so -c /etc/flb.conf &
flb_pid=$!
echo "{beginning_date: \"$(date)\"}" >> $log_file
/sbin/metadata-collect-agent $NEWROOT/usr/bin $log_file
/sbin/metadata-collect-agent $NEWROOT/usr/sbin $log_file
echo "{end_date: \"$(date)\", end_marker: \"fluentbit_end\"}" >> $log_file
waid $flb_pid
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