Fix honeycomb workaround 90/87790/1
authorMarco Platania <platania@research.att.com>
Wed, 15 May 2019 16:50:20 +0000 (12:50 -0400)
committerMarco Platania <platania@research.att.com>
Wed, 15 May 2019 16:51:35 +0000 (16:51 +0000)
Change-Id: If59c6022a945e0ce9bc8fe1cfc8229cf0d963cc3
Issue-ID: INT-856
Signed-off-by: Marco Platania <platania@research.att.com>
vnfs/vFW/scripts/v_packetgen_install.sh
vnfs/vFW/scripts/v_packetgen_install_arm64.sh

index 48d7c29..15732a1 100755 (executable)
@@ -85,17 +85,17 @@ apt-get update
 apt-get install -y vpp vpp-dpdk-dkms vpp-lib vpp-dbg vpp-plugins vpp-dev
 sleep 1
 
-# Install honeycomb restart script (workaround due to honeycomb file handle leak - check every 5 minutes if honeycomb is up)
+# Install honeycomb restart script (workaround due to honeycomb shutdown: check every 5 minutes if it's still up)
 cat > /opt/start_honeycomb.sh <<EOF
 #!/bin/bash
-PID=$(ps -u root | grep honeycomb | awk '{printf $1}')
+PID=$(ps -u root | grep java | awk '{printf $1}')
 if [[ -z $PID ]]; then
   VERSION=$(cat /opt/config/demo_artifacts_version.txt)
   bash /opt/honeycomb/sample-distribution-$VERSION/honeycomb &>/dev/null &disown
 fi
 EOF
 chmod +x /opt/start_honeycomb.sh
-(crontab -l 2>/dev/null; echo "*/5 * * * * /opt/start_honeycomb.sh") | crontab -
+(crontab -l 2>/dev/null; echo "*/5 * * * * bash /opt/start_honeycomb.sh") | crontab -
 
 # Run instantiation script
 cd /opt
index 773baa1..00e23f5 100755 (executable)
@@ -85,17 +85,17 @@ apt-get update
 apt-get -o Dpkg::Options::="--force-overwrite" install -y vpp vpp-lib vpp-dbg vpp-plugins vpp-dev dpdk dpdk-dev dpdk-igb-uio-dkms dpdk-rte-kni-dkms honeycomb
 sleep 1
 
-# Install honeycomb restart script (workaround due to honeycomb file handle leak - check every 5 minutes if honeycomb is up)
+# Install honeycomb restart script (workaround due to honeycomb shutdown: check every 5 minutes if it's still up)
 cat > /opt/start_honeycomb.sh <<EOF
 #!/bin/bash
-PID=$(ps -u root | grep honeycomb | awk '{printf $1}')
+PID=$(ps -u root | grep java | awk '{printf $1}')
 if [[ -z $PID ]]; then
   VERSION=$(cat /opt/config/demo_artifacts_version.txt)
   bash /opt/honeycomb/sample-distribution-$VERSION/honeycomb &>/dev/null &disown
 fi
 EOF
 chmod +x /opt/start_honeycomb.sh
-(crontab -l 2>/dev/null; echo "*/5 * * * * /opt/start_honeycomb.sh") | crontab -
+(crontab -l 2>/dev/null; echo "*/5 * * * * bash /opt/start_honeycomb.sh") | crontab -
 
 # Run instantiation script
 cd /opt