[lxc-devel] systemd instanced lxc services

Cameron Norman camerontnorman at gmail.com
Tue Jun 30 20:38:01 UTC 2015


On Tue, Jun 30, 2015 at 12:24 PM, Stéphane Graber <stgraber at 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


More information about the lxc-devel mailing list