summaryrefslogtreecommitdiff
path: root/pkg/spec/createconfig.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-08-01 12:37:24 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-08-01 12:37:24 -0400
commit6bbeda6da5f1facef226125b2089d8f1712208c8 (patch)
treef16210b5c44d841de0d1c8524ca173a78eb62856 /pkg/spec/createconfig.go
parent9dcd76e369fb163774f8f58a7da24a7899e95b60 (diff)
downloadpodman-6bbeda6da5f1facef226125b2089d8f1712208c8.tar.gz
podman-6bbeda6da5f1facef226125b2089d8f1712208c8.tar.bz2
podman-6bbeda6da5f1facef226125b2089d8f1712208c8.zip
Pass on events-backend config to cleanup processes
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'pkg/spec/createconfig.go')
-rw-r--r--pkg/spec/createconfig.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/spec/createconfig.go b/pkg/spec/createconfig.go
index 214a3c5ed..f21ae2831 100644
--- a/pkg/spec/createconfig.go
+++ b/pkg/spec/createconfig.go
@@ -168,6 +168,9 @@ func (c *CreateConfig) createExitCommand(runtime *libpod.Runtime) ([]string, err
for _, opt := range config.StorageConfig.GraphDriverOptions {
command = append(command, []string{"--storage-opt", opt}...)
}
+ if config.EventsLogger != "" {
+ command = append(command, []string{"--events-backend", config.EventsLogger}...)
+ }
if c.Syslog {
command = append(command, "--syslog", "true")