From: Christian Brauner Date: Wed, 6 Dec 2017 14:37:12 +0000 (+0100) Subject: execute: pass logfile to lxc-init X-Git-Tag: lxc-3.0.0.beta1~130^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f98ac7b0f3f25e42f6de50c4d43ec74bcb90c8d;p=thirdparty%2Flxc.git execute: pass logfile to lxc-init Signed-off-by: Christian Brauner --- diff --git a/src/lxc/execute.c b/src/lxc/execute.c index 1b142aeca..40856a337 100644 --- a/src/lxc/execute.c +++ b/src/lxc/execute.c @@ -77,6 +77,11 @@ static int execute_start(struct lxc_handler *handler, void* data) argv[i++] = (char *)lxc_log_priority_to_string(lxc_log_get_level()); } + if (handler->conf->logfile) { + argv[i++] = "-o"; + argv[i++] = (char *)handler->conf->logfile; + } + if (my_args->quiet) argv[i++] = "--quiet";