summaryrefslogtreecommitdiff
path: root/pkg/systemd/generate/containers.go
diff options
context:
space:
mode:
authorYuan-Hao Chen <yhchen0906@gmail.com>2020-06-19 00:59:50 +0800
committerYuan-Hao Chen <yhchen0906@gmail.com>2020-06-19 22:23:35 +0800
commitf18d2751f69f90f65bd22d9d97bb9e288b683e10 (patch)
tree251767e16e9483156651544c9ff2a6d7d941ca28 /pkg/systemd/generate/containers.go
parent5ec29f8d4e79500915ec79824d9eb21630205f3f (diff)
downloadpodman-f18d2751f69f90f65bd22d9d97bb9e288b683e10.tar.gz
podman-f18d2751f69f90f65bd22d9d97bb9e288b683e10.tar.bz2
podman-f18d2751f69f90f65bd22d9d97bb9e288b683e10.zip
correct the absolute path of `rm` executable
Signed-off-by: Yuan-Hao Chen <yhchen0906@gmail.com>
Diffstat (limited to 'pkg/systemd/generate/containers.go')
-rw-r--r--pkg/systemd/generate/containers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/systemd/generate/containers.go b/pkg/systemd/generate/containers.go
index 16ff0b821..bf6cb81b8 100644
--- a/pkg/systemd/generate/containers.go
+++ b/pkg/systemd/generate/containers.go
@@ -244,7 +244,7 @@ func executeContainerTemplate(info *containerInfo, options entities.GenerateSyst
}
startCommand = append(startCommand, info.CreateCommand[index:]...)
- info.ExecStartPre = "/usr/bin/rm -f {{.PIDFile}} {{.ContainerIDFile}}"
+ info.ExecStartPre = "/bin/rm -f {{.PIDFile}} {{.ContainerIDFile}}"
info.ExecStart = strings.Join(startCommand, " ")
info.ExecStop = "{{.Executable}} stop --ignore --cidfile {{.ContainerIDFile}} {{if (ge .StopTimeout 0)}}-t {{.StopTimeout}}{{end}}"
info.ExecStopPost = "{{.Executable}} rm --ignore -f --cidfile {{.ContainerIDFile}}"