diff options
author | Arnstein Ressem <aressem@yahoo-inc.com> | 2016-06-22 21:04:02 +0200 |
---|---|---|
committer | Arnstein Ressem <aressem@yahoo-inc.com> | 2016-06-22 21:04:02 +0200 |
commit | 92440fbc43c2afc514cb368eecd6853323c69db0 (patch) | |
tree | 97320766514cfb851dd6de07591e63f57de7e513 /docker | |
parent | c8ca77d2485bc110fa62e3d4bd0b8a0c49b72083 (diff) |
logfmt checks if STDIN is open. Needs to explicitly state filename for vespa.log.
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/run-vespa-internal.sh | 7 |
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 |