2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-12 10:49:17 +00:00

Amend RH initqueue

We may be called before drivers have manifested interfaces.
On each iteration make sure all nics are up before proceeding.
This commit is contained in:
Jarrod Johnson 2020-06-18 16:45:24 -04:00
parent 889b6a9930
commit 5bc9cb57d1
2 changed files with 10 additions and 10 deletions

View File

@ -1,12 +1,12 @@
#!/bin/sh
[ -e /tmp/confluent.initq ] && return 0
echo -n "" > /tmp/confluent.initq
cd /sys/class/net
for currif in *; do
ip link set $currif up
done
cd -
while ! grep MANAGER /tmp/confluent.info >& /dev/null; do
cd /sys/class/net
for currif in *; do
ip link set $currif up
done
cd -
/opt/confluent/bin/copernicus -t > /tmp/confluent.info
done
read ifidx <<EOF

View File

@ -3,12 +3,12 @@
mkdir -p /etc/confluent
cat /tls/*.pem > /etc/confluent/ca.pem
echo -n "" > /tmp/confluent.initq
cd /sys/class/net
for currif in *; do
ip link set $currif up
done
cd -
while ! grep MANAGER /etc/confluent/confluent.info >& /dev/null; do
cd /sys/class/net
for currif in *; do
ip link set $currif up
done
cd -
/opt/confluent/bin/copernicus -t > /etc/confluent/confluent.info
done
read ifidx <<EOF