diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-08-18 19:25:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-18 19:25:13 +0200 |
commit | 438cbf4c8960db0b59a25a3fb38a778e24a69a40 (patch) | |
tree | cd88f2c036854caabc4a41bf4030a6d11fd86a4f /libpod/options.go | |
parent | 76f327f73ff9f5ae67a30186007685b8a2e21d67 (diff) | |
parent | e6673012b5da79714a83e7d99ff0a23c8f401cb9 (diff) | |
download | podman-438cbf4c8960db0b59a25a3fb38a778e24a69a40.tar.gz podman-438cbf4c8960db0b59a25a3fb38a778e24a69a40.tar.bz2 podman-438cbf4c8960db0b59a25a3fb38a778e24a69a40.zip |
Merge pull request #3813 from baude/nofds
do not activate sd_notify support when varlink
Diffstat (limited to 'libpod/options.go')
-rw-r--r-- | libpod/options.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libpod/options.go b/libpod/options.go index 7fbd0016a..1e7877dac 100644 --- a/libpod/options.go +++ b/libpod/options.go @@ -482,6 +482,15 @@ func WithEventsLogger(logger string) RuntimeOption { } } +// WithEnableSDNotify sets a runtime option so we know whether to disable socket/FD +// listening +func WithEnableSDNotify() RuntimeOption { + return func(rt *Runtime) error { + rt.config.SDNotify = true + return nil + } +} + // Container Creation Options // WithShmDir sets the directory that should be mounted on /dev/shm. |