summaryrefslogtreecommitdiff
path: root/cmd/podman/generate_systemd.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-01-12 23:13:45 +0100
committerGitHub <noreply@github.com>2020-01-12 23:13:45 +0100
commit55dd73cf5830eb44128f5b580cee3fb1e74dbea6 (patch)
tree0e7ae475004271275149b2e8ea83c9226e148d18 /cmd/podman/generate_systemd.go
parent2d5fd7cc3718d27b35352e80c0c3296c5bb69c2f (diff)
parent816e50ba02837946afade83e3cad06dd44d213ec (diff)
downloadpodman-55dd73cf5830eb44128f5b580cee3fb1e74dbea6.tar.gz
podman-55dd73cf5830eb44128f5b580cee3fb1e74dbea6.tar.bz2
podman-55dd73cf5830eb44128f5b580cee3fb1e74dbea6.zip
Merge pull request #4823 from vrothberg/gen-systemd
podman-generate-systemd --new
Diffstat (limited to 'cmd/podman/generate_systemd.go')
-rw-r--r--cmd/podman/generate_systemd.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/generate_systemd.go b/cmd/podman/generate_systemd.go
index aa202a68d..a9775f9cb 100644
--- a/cmd/podman/generate_systemd.go
+++ b/cmd/podman/generate_systemd.go
@@ -45,6 +45,7 @@ func init() {
}
flags.IntVarP(&containerSystemdCommand.StopTimeout, "timeout", "t", -1, "stop timeout override")
flags.StringVar(&containerSystemdCommand.RestartPolicy, "restart-policy", "on-failure", "applicable systemd restart-policy")
+ flags.BoolVarP(&containerSystemdCommand.New, "new", "", false, "create a new container instead of starting an existing one")
}
func generateSystemdCmd(c *cliconfig.GenerateSystemdValues) error {