blob: e8c8c0d4d0ec8c4726c13f230a890db2cd4d4fa1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/bash
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
set -e
if [ $# -ne 0 ]; then
echo "Usage: $0"
echo "This script should not be called manually."
exit 1
fi
DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
cd $DIR
# Workaround until we figure out why rpm does not set the ownership.
chown -R vespa:vespa /opt/vespa
export VESPA_CONFIG_SERVERS=$(hostname)
/opt/vespa/bin/vespa-start-configserver
/opt/vespa/bin/vespa-start-services
# Print log forever
while true; do
/opt/vespa/bin/logfmt -f /opt/vespa/logs/vespa/vespa.log
sleep 10
done
|