Quoting Dwight Engen (dwight.en...@oracle.com):
> On Mon, 14 Jan 2013 17:36:00 -0600
> Serge Hallyn <serge.hal...@canonical.com> wrote:
> 
> > Quoting Stéphane Graber (stgra...@ubuntu.com):
> > > On 01/14/2013 03:24 PM, Serge Hallyn wrote:
> > > > (leave the level at the current default)
> > > > 
> > > > Is there a better way to go about this?  Should we set a default
> > > > directory in /etc/default/lxc or at build-time, and allways use
> > > > ${LXC_LOG_PATH}/${name}.log?  Should lxc-create do this for all
> > > > containers, or should we do it through the templates as I did
> > > > here?
> > > 
> > > Assuming the various template maintainers agree, I think it'd be
> > > best to have a LXC_LOG_PATH defined in the configure, that should
> > > at least let you drop the mkdir call.
> > 
> > Are there any objections to this part?  If not I'll go ahead and
> > write a patch to do this.
> 
> As long as its configure(able) IMO seems like it should be fine. One
> nice thing right now is that all of a containers stuff (config and
> rootfs) is under one directory (in $LXCPATH/<container name>), which
> makes moving it to another machine easy. This seems more like the
> "appdirs" idea than "the unix way" (/etc and /var), so for "appdirs"
> style I'd expect the logs to be in $LXCPATH/<container name>/logs/
> rather than /var/log/lxc/<container name>.log. Of course a unix person
> would probably first think to look in /var/log/lxc :)

Hm, but that seems to be asking for an actual formatted path
at configure time, which (AFAICS) isn't really done.  At that
point I'd think we'd be better off using host configuration
(i.e. /etc/default/lxc or /etc/lxc/lxc.conf).  Then you could
make the logpath /var/log/lxc/$name/log/$name.log' or whatever
you wanted.

With configure, we'd probably want to just specify (for instance)
--logpath=/var/lib/lxc, and then always write to
$logpath/$name/$name.log.

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to