diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-06-25 12:00:17 +0200 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2020-06-25 15:38:22 -0400 |
commit | c69ce171aa75462e7201b404909634b9f97793fe (patch) | |
tree | b0359fae34aca4efe843acb034abbb6f62dd9891 /pkg/systemd | |
parent | 9de1581e9392c2f301778496cb624016de3d2c5c (diff) | |
download | podman-c69ce171aa75462e7201b404909634b9f97793fe.tar.gz podman-c69ce171aa75462e7201b404909634b9f97793fe.tar.bz2 podman-c69ce171aa75462e7201b404909634b9f97793fe.zip |
systemd generate: allow manual restart of container units in pods
Allow manual restarts of container units that are part of a pod.
This allows for configuring these containers for auto updates.
Fixes: #6770
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/systemd')
-rw-r--r-- | pkg/systemd/generate/containers.go | 2 | ||||
-rw-r--r-- | pkg/systemd/generate/containers_test.go | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/pkg/systemd/generate/containers.go b/pkg/systemd/generate/containers.go index bf6cb81b8..333f8ef88 100644 --- a/pkg/systemd/generate/containers.go +++ b/pkg/systemd/generate/containers.go @@ -69,8 +69,6 @@ type containerInfo struct { const containerTemplate = headerTemplate + ` {{- if .BoundToServices}} -RefuseManualStart=yes -RefuseManualStop=yes BindsTo={{- range $index, $value := .BoundToServices -}}{{if $index}} {{end}}{{ $value }}.service{{end}} After={{- range $index, $value := .BoundToServices -}}{{if $index}} {{end}}{{ $value }}.service{{end}} {{- end}} diff --git a/pkg/systemd/generate/containers_test.go b/pkg/systemd/generate/containers_test.go index 80f0996a1..e108251ea 100644 --- a/pkg/systemd/generate/containers_test.go +++ b/pkg/systemd/generate/containers_test.go @@ -88,8 +88,6 @@ Description=Podman container-foobar.service Documentation=man:podman-generate-systemd(1) Wants=network.target After=network-online.target -RefuseManualStart=yes -RefuseManualStop=yes BindsTo=a.service b.service c.service pod.service After=a.service b.service c.service pod.service |