summaryrefslogtreecommitdiff
path: root/pkg/systemd/generate/pods.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/pods.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/pods.go')
-rw-r--r--pkg/systemd/generate/pods.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/systemd/generate/pods.go b/pkg/systemd/generate/pods.go
index 1bd0c7bce..cb4078fac 100644
--- a/pkg/systemd/generate/pods.go
+++ b/pkg/systemd/generate/pods.go
@@ -293,7 +293,7 @@ func executePodTemplate(info *podInfo, options entities.GenerateSystemdOptions)
startCommand = append(startCommand, podCreateArgs...)
- info.ExecStartPre1 = "/usr/bin/rm -f {{.PIDFile}} {{.PodIDFile}}"
+ info.ExecStartPre1 = "/bin/rm -f {{.PIDFile}} {{.PodIDFile}}"
info.ExecStartPre2 = strings.Join(startCommand, " ")
info.ExecStart = "{{.Executable}} pod start --pod-id-file {{.PodIDFile}}"
info.ExecStop = "{{.Executable}} pod stop --ignore --pod-id-file {{.PodIDFile}} {{if (ge .StopTimeout 0)}}-t {{.StopTimeout}}{{end}}"