summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@yahoo-inc.com>2016-06-22 21:04:02 +0200
committerArnstein Ressem <aressem@yahoo-inc.com>2016-06-22 21:04:02 +0200
commit92440fbc43c2afc514cb368eecd6853323c69db0 (patch)
tree97320766514cfb851dd6de07591e63f57de7e513 /docker
parentc8ca77d2485bc110fa62e3d4bd0b8a0c49b72083 (diff)
logfmt checks if STDIN is open. Needs to explicitly state filename for vespa.log.
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/run-vespa-internal.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/docker/run-vespa-internal.sh b/docker/run-vespa-internal.sh
index 8ebaac8fa84..f019f1a3740 100755
--- a/docker/run-vespa-internal.sh
+++ b/docker/run-vespa-internal.sh
@@ -20,5 +20,8 @@ chown -R vespa:vespa /opt/vespa
/opt/vespa/bin/vespa-start-configserver
/opt/vespa/bin/vespa-start-services
-# Sleep forever
-tail -f /dev/null
+# Print log forever
+while true; do
+ /opt/vespa/bin/logfmt -f /opt/vespa/logs/vespa/vespa.log
+ sleep 10
+done