summaryrefslogtreecommitdiff
path: root/pkg/adapter/containers_remote.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-05-02 22:33:09 +0200
committerGitHub <noreply@github.com>2019-05-02 22:33:09 +0200
commitb5e5585ada50a887f439e513c5deae30c89648de (patch)
tree795c9e94db4d51012f40ccd0287504d39a4de83b /pkg/adapter/containers_remote.go
parent6bcbb88715fd9cab45eb668bba5ba83228e16883 (diff)
parentc18ad2bfd9034fe6b80e3f33c076af731be6778b (diff)
downloadpodman-b5e5585ada50a887f439e513c5deae30c89648de.tar.gz
podman-b5e5585ada50a887f439e513c5deae30c89648de.tar.bz2
podman-b5e5585ada50a887f439e513c5deae30c89648de.zip
Merge pull request #2985 from baude/generatesystemd
Generate Systemd
Diffstat (limited to 'pkg/adapter/containers_remote.go')
-rw-r--r--pkg/adapter/containers_remote.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/adapter/containers_remote.go b/pkg/adapter/containers_remote.go
index b7e353f71..201249fc3 100644
--- a/pkg/adapter/containers_remote.go
+++ b/pkg/adapter/containers_remote.go
@@ -956,3 +956,8 @@ func (r *LocalRuntime) Port(c *cliconfig.PortValues) ([]*Container, error) {
}
return containers, nil
}
+
+// GenerateSystemd creates a systemd until for a container
+func (r *LocalRuntime) GenerateSystemd(c *cliconfig.GenerateSystemdValues) (string, error) {
+ return iopodman.GenerateSystemd().Call(r.Conn, c.InputArgs[0], c.RestartPolicy, int64(c.StopTimeout), c.Name)
+}