blob: 8e1fb09548e63c58262603cafb21718c013bd276 (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// Author: arnej
package configserver
import (
"os"
"github.com/vespa-engine/vespa/client/go/internal/admin/envvars"
"github.com/vespa-engine/vespa/client/go/internal/admin/trace"
"github.com/vespa-engine/vespa/client/go/internal/util"
)
func maybeStartLogd() {
if os.Getenv(envvars.VESPA_CONFIGSERVER_MULTITENANT) == "true" {
backticks := util.BackTicksForwardStderr
out, err := backticks.Run("libexec/vespa/start-logd")
if err != nil {
panic(err)
}
trace.Info(out)
}
}
|