Skip to content

Commit dce473e

Browse files
authored
Merge pull request #556 from klueska/remvoe-full-path-imex-bins-25.3
[backport] Use just the binary name for the IMEX bins not their full path to exec
2 parents 6c79319 + 187a7d9 commit dce473e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/compute-domain-daemon/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const (
4040
nodesConfigPath = "/etc/nvidia-imex/nodes_config.cfg"
4141
imexConfigPath = "/etc/nvidia-imex/config.cfg"
4242
imexConfigTmplPath = "/etc/nvidia-imex/config.tmpl.cfg"
43-
imexBinaryPath = "/usr/bin/nvidia-imex"
44-
imexCtlPath = "/usr/bin/nvidia-imex-ctl"
43+
imexBinaryName = "nvidia-imex"
44+
imexCtlBinaryName = "nvidia-imex-ctl"
4545
)
4646

4747
type Flags struct {
@@ -186,7 +186,7 @@ func run(ctx context.Context, cancel context.CancelFunc, flags *Flags) error {
186186
}
187187

188188
// Prepare IMEX daemon process manager (not invoking the process yet).
189-
daemonCommandLine := []string{imexBinaryPath, "-c", imexConfigPath}
189+
daemonCommandLine := []string{imexBinaryName, "-c", imexConfigPath}
190190
processManager := NewProcessManager(daemonCommandLine)
191191

192192
// Prepare controller with CD manager (not invoking the controller yet).
@@ -269,7 +269,7 @@ func check(ctx context.Context, cancel context.CancelFunc, flags *Flags) error {
269269
}
270270

271271
// Check if IMEX daemon is ready
272-
cmd := exec.CommandContext(ctx, imexCtlPath, "-q")
272+
cmd := exec.CommandContext(ctx, imexCtlBinaryName, "-q")
273273

274274
// CombinedOutput captures both, stdout and stderr.
275275
output, err := cmd.CombinedOutput()

0 commit comments

Comments
 (0)