refactor: use --watch-config instead of signaling the container to reload config

This commit is contained in:
Jose Diaz-Gonzalez
2021-01-04 21:48:28 -05:00
parent 0b3a6687f6
commit 711945147b
2 changed files with 2 additions and 13 deletions

View File

@@ -74,7 +74,7 @@ func startVectorContainer(vectorImage string) error {
"--volume", "/var/run/docker.sock:/var/run/docker.sock",
"--volume", common.MustGetEnv("DOKKU_LOGS_HOST_DIR") + ":/var/logs/dokku/apps",
vectorImage,
"--config", "/etc/vector/vector.json"}, " "))
"--config", "/etc/vector/vector.json", "--watch-config"}, " "))
if !cmd.Execute() {
return errors.New("Unable to start vector container")
@@ -222,11 +222,5 @@ func writeVectorConfig() error {
return err
}
if !common.ContainerExists(vectorContainerName) {
return nil
}
return common.SuppressOutput(func() error {
return common.DockerSignal(vectorContainerName, "HUP")
})
return nil
}