[lxc-devel] [PATCH] lxc-monitord: remove hard code execvp path of lxc-monitord

Serge Hallyn serge.hallyn at ubuntu.com
Mon Jun 10 03:57:04 UTC 2013


Quoting Rui Xiang (rui.xiang at huawei.com):
> 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 at huawei.com>

Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-devel




More information about the lxc-devel mailing list