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.xi...@huawei.com> --- src/lxc/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/monitor.c b/src/lxc/monitor.c index c04bb73..0717344 100644 --- a/src/lxc/monitor.c +++ b/src/lxc/monitor.c @@ -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, -- 1.8.2.2 ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel