#!/bin/bash set -e if [ $# -ne 1 ]; then echo "Usage: $0 " echo "This script should not be called manually." exit 1 fi DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd) cd $DIR VESPA_VERSION=$1 rpm -i "vespa*-${VESPA_VERSION}-*.rpm" # Workaround until we figure out why rpm does not set the ownership. chown -R vespa:vespa /opt/yahoo/vespa export VESPA_CONFIG_SERVERS=$(hostname) /opt/yahoo/vespa/bin/vespa-start-configserver /opt/yahoo/vespa/bin/vespa-start-services # Print log forever while true; do /opt/yahoo/vespa/bin/logfmt -f /opt/yahoo/vespa/logs/vespa/vespa.log sleep 10 done