Commit 31f58b3f by Rui Xiang Committed by Serge Hallyn

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: 's avatarRui Xiang <rui.xiang@huawei.com> Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent f02abefe
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment