mirror of https://github.com/containers/podman.git
generate systemd: drop ExecStop
Drop the ExecStop step to simplify the generated units a bit.
The extra ExecStopPost step was added by commit e5c3432944
. If the
main PID (i.e., conmon) is killed, systemd will not execute ExecStop
(since the main PID is already down) but only execute the *Post steps.
Credits to the late Ulrich Obergfell for tracking this issue down; he is
missed.
The ExecStop step can safely be dropped since the Post step will take of
stopping (and removing) in any case.
Context: #15686
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
parent
2a8df49c2a
commit
c20abf12c7
|
@ -46,7 +46,6 @@ type containerInfo struct {
|
||||||
ExecStart string
|
ExecStart string
|
||||||
TimeoutStartSec uint
|
TimeoutStartSec uint
|
||||||
TimeoutStopSec uint
|
TimeoutStopSec uint
|
||||||
ExecStop string
|
|
||||||
ExecStopPost string
|
ExecStopPost string
|
||||||
GenerateNoHeader bool
|
GenerateNoHeader bool
|
||||||
Pod *podInfo
|
Pod *podInfo
|
||||||
|
@ -98,9 +97,6 @@ TimeoutStopSec={{{{.TimeoutStopSec}}}}
|
||||||
ExecStartPre={{{{.ExecStartPre}}}}
|
ExecStartPre={{{{.ExecStartPre}}}}
|
||||||
{{{{- end}}}}
|
{{{{- end}}}}
|
||||||
ExecStart={{{{.ExecStart}}}}
|
ExecStart={{{{.ExecStart}}}}
|
||||||
{{{{- if .ExecStop}}}}
|
|
||||||
ExecStop={{{{.ExecStop}}}}
|
|
||||||
{{{{- end}}}}
|
|
||||||
{{{{- if .ExecStopPost}}}}
|
{{{{- if .ExecStopPost}}}}
|
||||||
ExecStopPost={{{{.ExecStopPost}}}}
|
ExecStopPost={{{{.ExecStopPost}}}}
|
||||||
{{{{- end}}}}
|
{{{{- end}}}}
|
||||||
|
@ -294,7 +290,6 @@ func executeContainerTemplate(info *containerInfo, options entities.GenerateSyst
|
||||||
info.Type = "forking"
|
info.Type = "forking"
|
||||||
info.EnvVariable = define.EnvVariable
|
info.EnvVariable = define.EnvVariable
|
||||||
info.ExecStart = "{{{{.Executable}}}} start {{{{.ContainerNameOrID}}}}"
|
info.ExecStart = "{{{{.Executable}}}} start {{{{.ContainerNameOrID}}}}"
|
||||||
info.ExecStop = "{{{{.Executable}}}} stop {{{{if (ge .StopTimeout 0)}}}}-t {{{{.StopTimeout}}}}{{{{end}}}} {{{{.ContainerNameOrID}}}}"
|
|
||||||
info.ExecStopPost = "{{{{.Executable}}}} stop {{{{if (ge .StopTimeout 0)}}}}-t {{{{.StopTimeout}}}}{{{{end}}}} {{{{.ContainerNameOrID}}}}"
|
info.ExecStopPost = "{{{{.Executable}}}} stop {{{{if (ge .StopTimeout 0)}}}}-t {{{{.StopTimeout}}}}{{{{end}}}} {{{{.ContainerNameOrID}}}}"
|
||||||
for i, env := range info.AdditionalEnvVariables {
|
for i, env := range info.AdditionalEnvVariables {
|
||||||
info.AdditionalEnvVariables[i] = escapeSystemdArg(env)
|
info.AdditionalEnvVariables[i] = escapeSystemdArg(env)
|
||||||
|
@ -313,7 +308,6 @@ func executeContainerTemplate(info *containerInfo, options entities.GenerateSyst
|
||||||
info.PIDFile = ""
|
info.PIDFile = ""
|
||||||
info.ContainerIDFile = "%t/%n.ctr-id"
|
info.ContainerIDFile = "%t/%n.ctr-id"
|
||||||
info.ExecStartPre = "/bin/rm -f {{{{.ContainerIDFile}}}}"
|
info.ExecStartPre = "/bin/rm -f {{{{.ContainerIDFile}}}}"
|
||||||
info.ExecStop = "{{{{.Executable}}}} stop --ignore --cidfile={{{{.ContainerIDFile}}}}"
|
|
||||||
info.ExecStopPost = "{{{{.Executable}}}} rm -f --ignore --cidfile={{{{.ContainerIDFile}}}}"
|
info.ExecStopPost = "{{{{.Executable}}}} rm -f --ignore --cidfile={{{{.ContainerIDFile}}}}"
|
||||||
// The create command must at least have three arguments:
|
// The create command must at least have three arguments:
|
||||||
// /usr/bin/podman run $IMAGE
|
// /usr/bin/podman run $IMAGE
|
||||||
|
|
|
@ -57,7 +57,6 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
TimeoutStopSec=82
|
TimeoutStopSec=82
|
||||||
ExecStart=/usr/bin/podman start 639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401
|
ExecStart=/usr/bin/podman start 639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401
|
||||||
ExecStop=/usr/bin/podman stop -t 22 639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401
|
|
||||||
ExecStopPost=/usr/bin/podman stop -t 22 639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401
|
ExecStopPost=/usr/bin/podman stop -t 22 639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401
|
||||||
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -83,7 +82,6 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
TimeoutStopSec=70
|
TimeoutStopSec=70
|
||||||
ExecStart=/usr/bin/podman start foobar
|
ExecStart=/usr/bin/podman start foobar
|
||||||
ExecStop=/usr/bin/podman stop -t 10 foobar
|
|
||||||
ExecStopPost=/usr/bin/podman stop -t 10 foobar
|
ExecStopPost=/usr/bin/podman stop -t 10 foobar
|
||||||
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -107,7 +105,6 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
TimeoutStopSec=70
|
TimeoutStopSec=70
|
||||||
ExecStart=/usr/bin/podman start foobar
|
ExecStart=/usr/bin/podman start foobar
|
||||||
ExecStop=/usr/bin/podman stop -t 10 foobar
|
|
||||||
ExecStopPost=/usr/bin/podman stop -t 10 foobar
|
ExecStopPost=/usr/bin/podman stop -t 10 foobar
|
||||||
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -134,7 +131,6 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
TimeoutStopSec=70
|
TimeoutStopSec=70
|
||||||
ExecStart=/usr/bin/podman start foobar
|
ExecStart=/usr/bin/podman start foobar
|
||||||
ExecStop=/usr/bin/podman stop -t 10 foobar
|
|
||||||
ExecStopPost=/usr/bin/podman stop -t 10 foobar
|
ExecStopPost=/usr/bin/podman stop -t 10 foobar
|
||||||
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -161,7 +157,6 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
TimeoutStopSec=70
|
TimeoutStopSec=70
|
||||||
ExecStart=/usr/bin/podman start foobar
|
ExecStart=/usr/bin/podman start foobar
|
||||||
ExecStop=/usr/bin/podman stop -t 10 foobar
|
|
||||||
ExecStopPost=/usr/bin/podman stop -t 10 foobar
|
ExecStopPost=/usr/bin/podman stop -t 10 foobar
|
||||||
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -188,7 +183,6 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
TimeoutStopSec=70
|
TimeoutStopSec=70
|
||||||
ExecStart=/usr/bin/podman start foobar
|
ExecStart=/usr/bin/podman start foobar
|
||||||
ExecStop=/usr/bin/podman stop -t 10 foobar
|
|
||||||
ExecStopPost=/usr/bin/podman stop -t 10 foobar
|
ExecStopPost=/usr/bin/podman stop -t 10 foobar
|
||||||
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -217,7 +211,6 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
TimeoutStopSec=70
|
TimeoutStopSec=70
|
||||||
ExecStart=/usr/bin/podman start foobar
|
ExecStart=/usr/bin/podman start foobar
|
||||||
ExecStop=/usr/bin/podman stop -t 10 foobar
|
|
||||||
ExecStopPost=/usr/bin/podman stop -t 10 foobar
|
ExecStopPost=/usr/bin/podman stop -t 10 foobar
|
||||||
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -243,7 +236,6 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
TimeoutStopSec=70
|
TimeoutStopSec=70
|
||||||
ExecStart=/usr/bin/podman start foobar
|
ExecStart=/usr/bin/podman start foobar
|
||||||
ExecStop=/usr/bin/podman stop -t 10 foobar
|
|
||||||
ExecStopPost=/usr/bin/podman stop -t 10 foobar
|
ExecStopPost=/usr/bin/podman stop -t 10 foobar
|
||||||
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -276,7 +268,6 @@ ExecStart=/usr/bin/podman container run \
|
||||||
--replace \
|
--replace \
|
||||||
--name jadda-jadda \
|
--name jadda-jadda \
|
||||||
--hostname hello-world awesome-image:latest command arg1 ... argN "foo=arg \"with \" space"
|
--hostname hello-world awesome-image:latest command arg1 ... argN "foo=arg \"with \" space"
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
@ -309,7 +300,6 @@ ExecStart=/usr/bin/podman container run \
|
||||||
--sdnotify=container \
|
--sdnotify=container \
|
||||||
--name jadda-jadda \
|
--name jadda-jadda \
|
||||||
--hostname hello-world awesome-image:latest command arg1 ... argN "foo=arg \"with \" space"
|
--hostname hello-world awesome-image:latest command arg1 ... argN "foo=arg \"with \" space"
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
@ -342,7 +332,6 @@ ExecStart=/usr/bin/podman container run \
|
||||||
--replace \
|
--replace \
|
||||||
--name jadda-jadda \
|
--name jadda-jadda \
|
||||||
--hostname hello-world awesome-image:latest command arg1 ... argN "foo=arg \"with \" space"
|
--hostname hello-world awesome-image:latest command arg1 ... argN "foo=arg \"with \" space"
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
@ -375,7 +364,6 @@ ExecStart=/usr/bin/podman run \
|
||||||
-d \
|
-d \
|
||||||
--name jadda-jadda \
|
--name jadda-jadda \
|
||||||
--hostname hello-world awesome-image:latest command arg1 ... argN
|
--hostname hello-world awesome-image:latest command arg1 ... argN
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
@ -409,7 +397,6 @@ ExecStart=/usr/bin/podman run \
|
||||||
-d \
|
-d \
|
||||||
--name jadda-jadda \
|
--name jadda-jadda \
|
||||||
--hostname hello-world awesome-image:latest command arg1 ... argN
|
--hostname hello-world awesome-image:latest command arg1 ... argN
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
@ -442,7 +429,6 @@ ExecStart=/usr/bin/podman run \
|
||||||
--detach \
|
--detach \
|
||||||
--name jadda-jadda \
|
--name jadda-jadda \
|
||||||
--hostname hello-world awesome-image:latest command arg1 ... argN
|
--hostname hello-world awesome-image:latest command arg1 ... argN
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
@ -472,7 +458,6 @@ ExecStart=/usr/bin/podman run \
|
||||||
--rm \
|
--rm \
|
||||||
--sdnotify=conmon \
|
--sdnotify=conmon \
|
||||||
-d awesome-image:latest
|
-d awesome-image:latest
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
@ -505,7 +490,6 @@ ExecStart=/usr/bin/podman run \
|
||||||
` +
|
` +
|
||||||
detachparam +
|
detachparam +
|
||||||
` awesome-image:latest
|
` awesome-image:latest
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
@ -541,7 +525,6 @@ ExecStart=/usr/bin/podman run \
|
||||||
--name test \
|
--name test \
|
||||||
-p 80:80 awesome-image:latest somecmd \
|
-p 80:80 awesome-image:latest somecmd \
|
||||||
--detach=false
|
--detach=false
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
@ -573,7 +556,6 @@ ExecStart=/usr/bin/podman \
|
||||||
--rm \
|
--rm \
|
||||||
--sdnotify=conmon \
|
--sdnotify=conmon \
|
||||||
-d awesome-image:latest
|
-d awesome-image:latest
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
@ -603,7 +585,6 @@ ExecStart=/usr/bin/podman container run \
|
||||||
--rm \
|
--rm \
|
||||||
--sdnotify=conmon \
|
--sdnotify=conmon \
|
||||||
-d awesome-image:latest
|
-d awesome-image:latest
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
@ -637,7 +618,6 @@ ExecStart=/usr/bin/podman run \
|
||||||
--name test \
|
--name test \
|
||||||
--log-driver=journald \
|
--log-driver=journald \
|
||||||
--log-opt=tag={{.Name}} awesome-image:latest
|
--log-opt=tag={{.Name}} awesome-image:latest
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
@ -670,7 +650,6 @@ ExecStart=/usr/bin/podman run \
|
||||||
--replace \
|
--replace \
|
||||||
--name test awesome-image:latest sh \
|
--name test awesome-image:latest sh \
|
||||||
-c "kill $$$$ && echo %%\\"
|
-c "kill $$$$ && echo %%\\"
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
@ -704,7 +683,6 @@ ExecStart=/usr/bin/podman run \
|
||||||
--cgroups=foo \
|
--cgroups=foo \
|
||||||
--conmon-pidfile=foo \
|
--conmon-pidfile=foo \
|
||||||
--cidfile=foo alpine
|
--cidfile=foo alpine
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
@ -740,7 +718,6 @@ ExecStart=/usr/bin/podman run \
|
||||||
--conmon-pidfile=foo \
|
--conmon-pidfile=foo \
|
||||||
--cidfile=foo \
|
--cidfile=foo \
|
||||||
--pod-id-file /tmp/pod-foobar.pod-id-file alpine
|
--pod-id-file /tmp/pod-foobar.pod-id-file alpine
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
@ -775,7 +752,6 @@ ExecStart=/usr/bin/podman run \
|
||||||
--env=BAR \
|
--env=BAR \
|
||||||
--env=MYENV=2 \
|
--env=MYENV=2 \
|
||||||
-e USER awesome-image:latest
|
-e USER awesome-image:latest
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
@ -802,7 +778,6 @@ Environment=USER=%%a
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
TimeoutStopSec=70
|
TimeoutStopSec=70
|
||||||
ExecStart=/usr/bin/podman start foobar
|
ExecStart=/usr/bin/podman start foobar
|
||||||
ExecStop=/usr/bin/podman stop -t 10 foobar
|
|
||||||
ExecStopPost=/usr/bin/podman stop -t 10 foobar
|
ExecStopPost=/usr/bin/podman stop -t 10 foobar
|
||||||
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -833,7 +808,6 @@ ExecStart=/usr/bin/podman run \
|
||||||
--rm \
|
--rm \
|
||||||
--sdnotify=conmon \
|
--sdnotify=conmon \
|
||||||
-d awesome-image:latest
|
-d awesome-image:latest
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
@ -864,7 +838,6 @@ ExecStart=/usr/bin/podman run \
|
||||||
--sdnotify=conmon \
|
--sdnotify=conmon \
|
||||||
-d \
|
-d \
|
||||||
-h hostname awesome-image:latest
|
-h hostname awesome-image:latest
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
@ -896,7 +869,6 @@ ExecStart=/usr/bin/podman run \
|
||||||
--rm \
|
--rm \
|
||||||
--sdnotify=conmon \
|
--sdnotify=conmon \
|
||||||
-d awesome-image:latest
|
-d awesome-image:latest
|
||||||
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
||||||
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
|
|
@ -69,8 +69,6 @@ type podInfo struct {
|
||||||
ExecStart string
|
ExecStart string
|
||||||
// TimeoutStopSec of the unit.
|
// TimeoutStopSec of the unit.
|
||||||
TimeoutStopSec uint
|
TimeoutStopSec uint
|
||||||
// ExecStop of the unit.
|
|
||||||
ExecStop string
|
|
||||||
// ExecStopPost of the unit.
|
// ExecStopPost of the unit.
|
||||||
ExecStopPost string
|
ExecStopPost string
|
||||||
// Removes autogenerated by Podman and timestamp if set to true
|
// Removes autogenerated by Podman and timestamp if set to true
|
||||||
|
@ -122,7 +120,6 @@ ExecStartPre={{{{.ExecStartPre1}}}}
|
||||||
ExecStartPre={{{{.ExecStartPre2}}}}
|
ExecStartPre={{{{.ExecStartPre2}}}}
|
||||||
{{{{- end}}}}
|
{{{{- end}}}}
|
||||||
ExecStart={{{{.ExecStart}}}}
|
ExecStart={{{{.ExecStart}}}}
|
||||||
ExecStop={{{{.ExecStop}}}}
|
|
||||||
ExecStopPost={{{{.ExecStopPost}}}}
|
ExecStopPost={{{{.ExecStopPost}}}}
|
||||||
PIDFile={{{{.PIDFile}}}}
|
PIDFile={{{{.PIDFile}}}}
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -295,7 +292,6 @@ func executePodTemplate(info *podInfo, options entities.GenerateSystemdOptions)
|
||||||
|
|
||||||
info.EnvVariable = define.EnvVariable
|
info.EnvVariable = define.EnvVariable
|
||||||
info.ExecStart = "{{{{.Executable}}}} start {{{{.InfraNameOrID}}}}"
|
info.ExecStart = "{{{{.Executable}}}} start {{{{.InfraNameOrID}}}}"
|
||||||
info.ExecStop = "{{{{.Executable}}}} stop {{{{if (ge .StopTimeout 0)}}}}-t {{{{.StopTimeout}}}}{{{{end}}}} {{{{.InfraNameOrID}}}}"
|
|
||||||
info.ExecStopPost = "{{{{.Executable}}}} stop {{{{if (ge .StopTimeout 0)}}}}-t {{{{.StopTimeout}}}}{{{{end}}}} {{{{.InfraNameOrID}}}}"
|
info.ExecStopPost = "{{{{.Executable}}}} stop {{{{if (ge .StopTimeout 0)}}}}-t {{{{.StopTimeout}}}}{{{{end}}}} {{{{.InfraNameOrID}}}}"
|
||||||
|
|
||||||
// Assemble the ExecStart command when creating a new pod.
|
// Assemble the ExecStart command when creating a new pod.
|
||||||
|
@ -374,7 +370,6 @@ func executePodTemplate(info *podInfo, options entities.GenerateSystemdOptions)
|
||||||
info.ExecStartPre1 = "/bin/rm -f {{{{.PIDFile}}}} {{{{.PodIDFile}}}}"
|
info.ExecStartPre1 = "/bin/rm -f {{{{.PIDFile}}}} {{{{.PodIDFile}}}}"
|
||||||
info.ExecStartPre2 = strings.Join(startCommand, " ")
|
info.ExecStartPre2 = strings.Join(startCommand, " ")
|
||||||
info.ExecStart = "{{{{.Executable}}}} {{{{if .RootFlags}}}}{{{{ .RootFlags}}}} {{{{end}}}}pod start --pod-id-file {{{{.PodIDFile}}}}"
|
info.ExecStart = "{{{{.Executable}}}} {{{{if .RootFlags}}}}{{{{ .RootFlags}}}} {{{{end}}}}pod start --pod-id-file {{{{.PodIDFile}}}}"
|
||||||
info.ExecStop = "{{{{.Executable}}}} {{{{if .RootFlags}}}}{{{{ .RootFlags}}}} {{{{end}}}}pod stop --ignore --pod-id-file {{{{.PodIDFile}}}} {{{{if (ge .StopTimeout 0)}}}}-t {{{{.StopTimeout}}}}{{{{end}}}}"
|
|
||||||
info.ExecStopPost = "{{{{.Executable}}}} {{{{if .RootFlags}}}}{{{{ .RootFlags}}}} {{{{end}}}}pod rm --ignore -f --pod-id-file {{{{.PodIDFile}}}}"
|
info.ExecStopPost = "{{{{.Executable}}}} {{{{if .RootFlags}}}}{{{{ .RootFlags}}}} {{{{end}}}}pod rm --ignore -f --pod-id-file {{{{.PodIDFile}}}}"
|
||||||
}
|
}
|
||||||
info.TimeoutStopSec = minTimeoutStopSec + info.StopTimeout
|
info.TimeoutStopSec = minTimeoutStopSec + info.StopTimeout
|
||||||
|
|
|
@ -79,7 +79,6 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
TimeoutStopSec=102
|
TimeoutStopSec=102
|
||||||
ExecStart=/usr/bin/podman start jadda-jadda-infra
|
ExecStart=/usr/bin/podman start jadda-jadda-infra
|
||||||
ExecStop=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
|
||||||
ExecStopPost=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
ExecStopPost=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
||||||
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -107,7 +106,6 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
TimeoutStopSec=102
|
TimeoutStopSec=102
|
||||||
ExecStart=/usr/bin/podman start jadda-jadda-infra
|
ExecStart=/usr/bin/podman start jadda-jadda-infra
|
||||||
ExecStop=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
|
||||||
ExecStopPost=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
ExecStopPost=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
||||||
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -136,7 +134,6 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
TimeoutStopSec=102
|
TimeoutStopSec=102
|
||||||
ExecStart=/usr/bin/podman start jadda-jadda-infra
|
ExecStart=/usr/bin/podman start jadda-jadda-infra
|
||||||
ExecStop=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
|
||||||
ExecStopPost=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
ExecStopPost=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
||||||
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -164,7 +161,6 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
TimeoutStopSec=102
|
TimeoutStopSec=102
|
||||||
ExecStart=/usr/bin/podman start jadda-jadda-infra
|
ExecStart=/usr/bin/podman start jadda-jadda-infra
|
||||||
ExecStop=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
|
||||||
ExecStopPost=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
ExecStopPost=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
||||||
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -192,7 +188,6 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
TimeoutStopSec=102
|
TimeoutStopSec=102
|
||||||
ExecStart=/usr/bin/podman start jadda-jadda-infra
|
ExecStart=/usr/bin/podman start jadda-jadda-infra
|
||||||
ExecStop=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
|
||||||
ExecStopPost=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
ExecStopPost=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
||||||
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -222,7 +217,6 @@ Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
TimeoutStopSec=102
|
TimeoutStopSec=102
|
||||||
ExecStart=/usr/bin/podman start jadda-jadda-infra
|
ExecStart=/usr/bin/podman start jadda-jadda-infra
|
||||||
ExecStop=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
|
||||||
ExecStopPost=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
ExecStopPost=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
||||||
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -249,7 +243,6 @@ TimeoutStopSec=70
|
||||||
ExecStartPre=/bin/rm -f %t/pod-123abc.pid %t/pod-123abc.pod-id
|
ExecStartPre=/bin/rm -f %t/pod-123abc.pid %t/pod-123abc.pod-id
|
||||||
ExecStartPre=/usr/bin/podman pod create --infra-conmon-pidfile %t/pod-123abc.pid --pod-id-file %t/pod-123abc.pod-id --exit-policy=stop foo
|
ExecStartPre=/usr/bin/podman pod create --infra-conmon-pidfile %t/pod-123abc.pid --pod-id-file %t/pod-123abc.pod-id --exit-policy=stop foo
|
||||||
ExecStart=/usr/bin/podman pod start --pod-id-file %t/pod-123abc.pod-id
|
ExecStart=/usr/bin/podman pod start --pod-id-file %t/pod-123abc.pod-id
|
||||||
ExecStop=/usr/bin/podman pod stop --ignore --pod-id-file %t/pod-123abc.pod-id -t 10
|
|
||||||
ExecStopPost=/usr/bin/podman pod rm --ignore -f --pod-id-file %t/pod-123abc.pod-id
|
ExecStopPost=/usr/bin/podman pod rm --ignore -f --pod-id-file %t/pod-123abc.pod-id
|
||||||
PIDFile=%t/pod-123abc.pid
|
PIDFile=%t/pod-123abc.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -276,7 +269,6 @@ Restart=on-failure
|
||||||
RestartSec=15
|
RestartSec=15
|
||||||
TimeoutStopSec=102
|
TimeoutStopSec=102
|
||||||
ExecStart=/usr/bin/podman start jadda-jadda-infra
|
ExecStart=/usr/bin/podman start jadda-jadda-infra
|
||||||
ExecStop=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
|
||||||
ExecStopPost=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
ExecStopPost=/usr/bin/podman stop -t 42 jadda-jadda-infra
|
||||||
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
PIDFile=/run/containers/storage/overlay-containers/639c53578af4d84b8800b4635fa4e680ee80fd67e0e6a2d4eea48d1e3230f401/userdata/conmon.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -304,7 +296,6 @@ TimeoutStopSec=70
|
||||||
ExecStartPre=/bin/rm -f %t/pod-123abc.pid %t/pod-123abc.pod-id
|
ExecStartPre=/bin/rm -f %t/pod-123abc.pid %t/pod-123abc.pod-id
|
||||||
ExecStartPre=/usr/bin/podman pod create --infra-conmon-pidfile %t/pod-123abc.pid --pod-id-file %t/pod-123abc.pod-id --exit-policy=stop --name foo "bar=arg with space" --replace
|
ExecStartPre=/usr/bin/podman pod create --infra-conmon-pidfile %t/pod-123abc.pid --pod-id-file %t/pod-123abc.pod-id --exit-policy=stop --name foo "bar=arg with space" --replace
|
||||||
ExecStart=/usr/bin/podman pod start --pod-id-file %t/pod-123abc.pod-id
|
ExecStart=/usr/bin/podman pod start --pod-id-file %t/pod-123abc.pod-id
|
||||||
ExecStop=/usr/bin/podman pod stop --ignore --pod-id-file %t/pod-123abc.pod-id -t 10
|
|
||||||
ExecStopPost=/usr/bin/podman pod rm --ignore -f --pod-id-file %t/pod-123abc.pod-id
|
ExecStopPost=/usr/bin/podman pod rm --ignore -f --pod-id-file %t/pod-123abc.pod-id
|
||||||
PIDFile=%t/pod-123abc.pid
|
PIDFile=%t/pod-123abc.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -332,7 +323,6 @@ TimeoutStopSec=70
|
||||||
ExecStartPre=/bin/rm -f %t/pod-123abc.pid %t/pod-123abc.pod-id
|
ExecStartPre=/bin/rm -f %t/pod-123abc.pid %t/pod-123abc.pod-id
|
||||||
ExecStartPre=/usr/bin/podman --events-backend none --runroot /root pod create --infra-conmon-pidfile %t/pod-123abc.pid --pod-id-file %t/pod-123abc.pod-id --exit-policy=stop --name foo "bar=arg with space" --replace
|
ExecStartPre=/usr/bin/podman --events-backend none --runroot /root pod create --infra-conmon-pidfile %t/pod-123abc.pid --pod-id-file %t/pod-123abc.pod-id --exit-policy=stop --name foo "bar=arg with space" --replace
|
||||||
ExecStart=/usr/bin/podman --events-backend none --runroot /root pod start --pod-id-file %t/pod-123abc.pod-id
|
ExecStart=/usr/bin/podman --events-backend none --runroot /root pod start --pod-id-file %t/pod-123abc.pod-id
|
||||||
ExecStop=/usr/bin/podman --events-backend none --runroot /root pod stop --ignore --pod-id-file %t/pod-123abc.pod-id -t 10
|
|
||||||
ExecStopPost=/usr/bin/podman --events-backend none --runroot /root pod rm --ignore -f --pod-id-file %t/pod-123abc.pod-id
|
ExecStopPost=/usr/bin/podman --events-backend none --runroot /root pod rm --ignore -f --pod-id-file %t/pod-123abc.pod-id
|
||||||
PIDFile=%t/pod-123abc.pid
|
PIDFile=%t/pod-123abc.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -360,7 +350,6 @@ TimeoutStopSec=70
|
||||||
ExecStartPre=/bin/rm -f %t/pod-123abc.pid %t/pod-123abc.pod-id
|
ExecStartPre=/bin/rm -f %t/pod-123abc.pid %t/pod-123abc.pod-id
|
||||||
ExecStartPre=/usr/bin/podman pod create --infra-conmon-pidfile %t/pod-123abc.pid --pod-id-file %t/pod-123abc.pod-id --exit-policy=stop --name foo --replace
|
ExecStartPre=/usr/bin/podman pod create --infra-conmon-pidfile %t/pod-123abc.pid --pod-id-file %t/pod-123abc.pod-id --exit-policy=stop --name foo --replace
|
||||||
ExecStart=/usr/bin/podman pod start --pod-id-file %t/pod-123abc.pod-id
|
ExecStart=/usr/bin/podman pod start --pod-id-file %t/pod-123abc.pod-id
|
||||||
ExecStop=/usr/bin/podman pod stop --ignore --pod-id-file %t/pod-123abc.pod-id -t 10
|
|
||||||
ExecStopPost=/usr/bin/podman pod rm --ignore -f --pod-id-file %t/pod-123abc.pod-id
|
ExecStopPost=/usr/bin/podman pod rm --ignore -f --pod-id-file %t/pod-123abc.pod-id
|
||||||
PIDFile=%t/pod-123abc.pid
|
PIDFile=%t/pod-123abc.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -388,7 +377,6 @@ TimeoutStopSec=70
|
||||||
ExecStartPre=/bin/rm -f %t/pod-123abc.pid %t/pod-123abc.pod-id
|
ExecStartPre=/bin/rm -f %t/pod-123abc.pid %t/pod-123abc.pod-id
|
||||||
ExecStartPre=/usr/bin/podman pod create --infra-conmon-pidfile %t/pod-123abc.pid --pod-id-file %t/pod-123abc.pod-id --name foo --label key={{someval}} --exit-policy=continue --replace
|
ExecStartPre=/usr/bin/podman pod create --infra-conmon-pidfile %t/pod-123abc.pid --pod-id-file %t/pod-123abc.pod-id --name foo --label key={{someval}} --exit-policy=continue --replace
|
||||||
ExecStart=/usr/bin/podman pod start --pod-id-file %t/pod-123abc.pod-id
|
ExecStart=/usr/bin/podman pod start --pod-id-file %t/pod-123abc.pod-id
|
||||||
ExecStop=/usr/bin/podman pod stop --ignore --pod-id-file %t/pod-123abc.pod-id -t 10
|
|
||||||
ExecStopPost=/usr/bin/podman pod rm --ignore -f --pod-id-file %t/pod-123abc.pod-id
|
ExecStopPost=/usr/bin/podman pod rm --ignore -f --pod-id-file %t/pod-123abc.pod-id
|
||||||
PIDFile=%t/pod-123abc.pid
|
PIDFile=%t/pod-123abc.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
|
|
|
@ -566,7 +566,6 @@ var _ = Describe("Podman generate systemd", func() {
|
||||||
Expect(session.OutputToString()).To(ContainSubstring("BindsTo=pod-foo.service"))
|
Expect(session.OutputToString()).To(ContainSubstring("BindsTo=pod-foo.service"))
|
||||||
Expect(session.OutputToString()).To(ContainSubstring("pod create --infra-conmon-pidfile %t/pod-foo.pid --pod-id-file %t/pod-foo.pod-id --exit-policy=stop --name foo"))
|
Expect(session.OutputToString()).To(ContainSubstring("pod create --infra-conmon-pidfile %t/pod-foo.pid --pod-id-file %t/pod-foo.pod-id --exit-policy=stop --name foo"))
|
||||||
Expect(session.OutputToString()).To(ContainSubstring("ExecStartPre=/bin/rm -f %t/pod-foo.pid %t/pod-foo.pod-id"))
|
Expect(session.OutputToString()).To(ContainSubstring("ExecStartPre=/bin/rm -f %t/pod-foo.pid %t/pod-foo.pod-id"))
|
||||||
Expect(session.OutputToString()).To(ContainSubstring("pod stop --ignore --pod-id-file %t/pod-foo.pod-id -t 10"))
|
|
||||||
Expect(session.OutputToString()).To(ContainSubstring("pod rm --ignore -f --pod-id-file %t/pod-foo.pod-id"))
|
Expect(session.OutputToString()).To(ContainSubstring("pod rm --ignore -f --pod-id-file %t/pod-foo.pod-id"))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue