summaryrefslogtreecommitdiff
path: root/pkg/systemd/generate/systemdgen.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-03-05 06:44:40 -0500
committerGitHub <noreply@github.com>2020-03-05 06:44:40 -0500
commit9ffc525da70ba497f38df04dd6d3670170200071 (patch)
tree266196128464cef50bd2946a7c43401f3a8e8d02 /pkg/systemd/generate/systemdgen.go
parent0356c0ed91f17e0276c95be8460348ae470f8e05 (diff)
parent05a0bf7c07e53a3142fb4e6d1bb71e60ee16e5c9 (diff)
downloadpodman-9ffc525da70ba497f38df04dd6d3670170200071.tar.gz
podman-9ffc525da70ba497f38df04dd6d3670170200071.tar.bz2
podman-9ffc525da70ba497f38df04dd6d3670170200071.zip
Merge pull request #5382 from vrothberg/systemd-network
generate systemd: add network dependencies
Diffstat (limited to 'pkg/systemd/generate/systemdgen.go')
-rw-r--r--pkg/systemd/generate/systemdgen.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/systemd/generate/systemdgen.go b/pkg/systemd/generate/systemdgen.go
index 404347828..999a65126 100644
--- a/pkg/systemd/generate/systemdgen.go
+++ b/pkg/systemd/generate/systemdgen.go
@@ -80,6 +80,8 @@ const containerTemplate = `# {{.ServiceName}}.service
[Unit]
Description=Podman {{.ServiceName}}.service
Documentation=man:podman-generate-systemd(1)
+Wants=network.target
+After=network-online.target
{{- if .BoundToServices}}
RefuseManualStart=yes
RefuseManualStop=yes