[pkg-lxc-devel] Bug#827156: [LXC] no support for lxc.logfile in config file, but support of --logfile on lxc-start command
LACROIX Jean Marc
jeanmarc.lacroix at free.fr
Mon Jun 13 04:45:52 UTC 2016
Package: lxc
Version: 1:1.0.6-6+deb8u2
Dear Maintainers,
On Debian Jessie 8.5 running LXC, i am trying to replace command options
(for logfile management) on lxc-start by configuration file as defined
in man lxc.conf.
My kernel release is :
admlocal at syspeo:~$ uname -a
Linux syspeo 4.5.0-0.bpo.1-amd64 #1 SMP Debian 4.5.1-1~bpo8+1
(2016-04-20) x86_64 GNU/Linux
The correct command running without error is :
sudo lxc-start --name vm-template --rcfile /etc/lxc/auto/vm-template
--logpriority=DEBUG --logfile=/var/log/lxc/vm-template.log
With this command, logfile is created in /var/log/lxc/vm-template.log
and verbosity is correct with DEBUG severity
But when setting .....
lxc.loglevel = DEBUG
lxc.logfile = /var/log/lxc/vm-template.log
in config file in /etc/lxc/auto/vm-template, and running command :
sudo lxc-start --name vm-template --rcfile /etc/lxc/auto/vm-template
With this configuration, logfile is not created in location defined by
lxc.logfile parameter.
Perhaps a merge with
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806699 ???
Please note that with lxc backports on jessie (1:2.0.0-3~bpo8+1),
behaviour is correct.
Thanks in advance for your help
--
--------------------------------------
-- Jean-Marc LACROIX --
-- mailto : jeanmarc.lacroix at free.fr --
---------------------------------------
More information about the Pkg-lxc-devel
mailing list