diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-15 16:30:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-15 16:30:38 +0100 |
commit | e9d8ca22b8ea5923d6188225cd2d2254bdc4d898 (patch) | |
tree | dbb04a3758c48fbaf3289d624e3fe84518133206 /pkg/systemd/generate/common.go | |
parent | d40736fef1c0cbfc57ed39678bf95c016a13b512 (diff) | |
parent | 73e1cdfe9e41a8748b75b9461c087e4cee5d2183 (diff) | |
download | podman-e9d8ca22b8ea5923d6188225cd2d2254bdc4d898.tar.gz podman-e9d8ca22b8ea5923d6188225cd2d2254bdc4d898.tar.bz2 podman-e9d8ca22b8ea5923d6188225cd2d2254bdc4d898.zip |
Merge pull request #11076 from boaz0/closes_10275
Support template unit files in podman generate systemd
Diffstat (limited to 'pkg/systemd/generate/common.go')
-rw-r--r-- | pkg/systemd/generate/common.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/systemd/generate/common.go b/pkg/systemd/generate/common.go index 3515bb3b7..24c85a27e 100644 --- a/pkg/systemd/generate/common.go +++ b/pkg/systemd/generate/common.go @@ -23,7 +23,7 @@ func validateRestartPolicy(restart string) error { return errors.Errorf("%s is not a valid restart policy", restart) } -const headerTemplate = `# {{{{.ServiceName}}}}.service +const headerTemplate = `# {{{{.ServiceName}}}}{{{{- if (eq .IdentifySpecifier true) }}}}@{{{{- end}}}}.service {{{{- if (eq .GenerateNoHeader false) }}}} # autogenerated by Podman {{{{.PodmanVersion}}}} {{{{- if .TimeStamp}}}} @@ -32,7 +32,7 @@ const headerTemplate = `# {{{{.ServiceName}}}}.service {{{{- end}}}} [Unit] -Description=Podman {{{{.ServiceName}}}}.service +Description=Podman {{{{.ServiceName}}}}.service{{{{- if (eq .IdentifySpecifier true) }}}} for %I{{{{- end}}}} Documentation=man:podman-generate-systemd(1) Wants=network-online.target After=network-online.target |