mirror of
git://github.com/lxc/lxc
synced 2025-09-05 01:49:34 +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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user