execute: pass logfile to lxc-init

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2017-12-06 15:37:12 +01:00
parent 6b7f85cbcd
commit 8f98ac7b0f
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -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";