Commit 86e3177a authored by Ophélie Gagnard's avatar Ophélie Gagnard

dracut.module: Delete useless files.

parent c215b816
[SERVICE]
flush 5
[INPUT]
name tail
path /var/log/debug-mode.log
tag DEBUG
[output]
name fluentbit_wendelin
match *
streamtool_uri https://softinst157546.host.vifib.net/erp5/portal_ingestion_policies/metadata_upload
user zope
password qxrfkwod
buffer_type memory
flush_interval 60s
disable_retry_limit true
reference c-light-data_05
......@@ -15,6 +15,5 @@ install() {
inst "$moddir"/fluent-bit "/sbin/fluent-bit"
inst "$moddir"/libfluentbit_wendelin.so "/etc/libfluentbit_wendelin.so"
inst "$moddir"/flb.conf "/etc/flb.conf"
inst "$moddir"/debug-mode.conf "/etc/debug-mode.conf"
inst_hook pre-pivot 10 "$moddir"/collect.sh
}
#!/bin/bash
. /lib/dracut-lib.sh
DEBUG_LOG_FILE=/var/log/debug-mode.log
/sbin/fluent-bit -e /etc/libfluentbit_wendelin.so -c /etc/debug-mode.conf &
debug_flb_pid=$!
sleep 1 # wait for fluent-bit to monitor the log file (?)
echo "NEWROOT = $NEWROOT" &>> $DEBUG_LOG_FILE
echo "********** /usr/sbin **********" &>> $DEBUG_LOG_FILE
ls -Rl /usr/sbin &>> $DEBUG_LOG_FILE
echo "********** /bin **********" &>> $DEBUG_LOG_FILE
ls -Rl /usr/bin &>> $DEBUG_LOG_FILE
echo "********** /usr/etc **********" &>> $DEBUG_LOG_FILE
ls -Rl /etc &>> $DEBUG_LOG_FILE
echo "********** /usr/lib **********" &>> $DEBUG_LOG_FILE
ls -Rl /usr/lib &>> $DEBUG_LOG_FILE
echo "fluentbit_end" &>> $DEBUG_LOG_FILE
wait $debug_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