From 789def17d16fb2dd3f3ebb9a8cc03cc2a1bc6243 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 18 Jul 2022 09:35:40 -0400 Subject: [PATCH] Do not tail old content from firstboot Tail only new content being fleshly logged --- confluent_osdeploy/el8/profiles/default/scripts/firstboot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_osdeploy/el8/profiles/default/scripts/firstboot.sh b/confluent_osdeploy/el8/profiles/default/scripts/firstboot.sh index a735e2cf..1903f448 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/firstboot.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/firstboot.sh @@ -25,7 +25,7 @@ export nodename confluent_mgr confluent_profile exec >> /var/log/confluent/confluent-firstboot.log exec 2>> /var/log/confluent/confluent-firstboot.log chmod 600 /var/log/confluent/confluent-firstboot.log -tail -f /var/log/confluent/confluent-firstboot.log > /dev/console & +tail -n 0 -f /var/log/confluent/confluent-firstboot.log > /dev/console & logshowpid=$! while ! ping -c 1 $confluent_pingtarget >& /dev/null; do sleep 1