mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-06-13 07:27:55 +00:00
lxc-monitord: remove hard code execvp path of lxc-monitord
Sometimes, the path of lxc tools is not '/usr/bin', but '/usr/local/bin' or other. Then execvp lxc-monitord will fail in lxc_monitord_spawn. Signed-off-by: Rui Xiang <rui.xiang@huawei.com> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
f02abefef9
commit
31f58b3fce
@ -210,7 +210,7 @@ int lxc_monitord_spawn(const char *lxcpath)
|
||||
char pipefd_str[11];
|
||||
|
||||
char * const args[] = {
|
||||
"/usr/bin/lxc-monitord",
|
||||
"lxc-monitord",
|
||||
(char *)lxcpath,
|
||||
pipefd_str,
|
||||
NULL,
|
||||
|
Loading…
Reference in New Issue
Block a user