[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lxc-devel
Subject:    Re: [lxc-devel] systemd instanced lxc services
From:       Cameron Norman <camerontnorman () gmail ! com>
Date:       2015-06-30 20:38:01
Message-ID: CALZWFR+Qvsgfhpfj6St38kuZLaeOjRZ8xYQZ5+oC0ZfK_Yq28Q () mail ! gmail ! com
[Download RAW message or body]

On Tue, Jun 30, 2015 at 12:24 PM, Stéphane Graber <stgraber@ubuntu.com> wrote:
> On Tue, Jun 30, 2015 at 09:02:01AM -0700, Cameron Norman wrote:
>> Hello,
>>
>> There are systemd services to do instanced starting of lxc containers
>> like the upstart lxc-instance job floating around, but they have not
>> been included. [1]
>>
>> It would be nice if one could be added (and integrated with lxc-net,
>> which has not been the case).
>>
>> I could submit a patch if that is welcomed.
>>
>> [1] https://projects.archlinux.org/svntogit/community.git/tree/trunk/lxc.service?h=packages/lxc
>>
>> Cheers,
>> --
>> Cameron
>
> Yes, I think a patch would be welcome. Assuming that this can be done
> without affecting startup and shutdown ordering.

I am not sure what you mean (exactly) by that. I implemented it as
pulling in the main lxc.service and being ordered after that so that
all the instanced services go up after the setup there is complete and
go down before lxc.service is killed (just like the upstart job).

Here is the PR: https://github.com/lxc/lxc/pull/577

Cheers,
--
Cameron Norman
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic