+# 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 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 * * * * bash /opt/start_honeycomb.sh") | crontab -
+