]> git.proxmox.com Git - mirror_lxc.git/commit - configure.ac
lxc-autostart: rework boot and group handling
authorMichael H. Warfield <mhw@WittsEnd.com>
Mon, 19 May 2014 19:57:26 +0000 (15:57 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 3 Jun 2014 15:10:01 +0000 (11:10 -0400)
commit015f0dd7924d27aeb2f16bb0c4d243f3fd93e94b
tree890becc2525db24b10f2cfdfabacafb8e7f75199
parent77ae87cdeb5a41589c471ea9f9f3356e055f0fb4
lxc-autostart: rework boot and group handling

This adds new functionality to lxc-autostart.

*) The -g / --groups option is multiple cummulative entry.
This may be mixed freely with the previous comma separated
group list convention.  Groups are processed in the
order they first appear in the aggregated group list.

*) The NULL group may be specified in the group list using either a
leading comma, a trailing comma, or an embedded comma.

*) Booting proceeds in order of the groups specified on the command line
then ordered by lxc.start.order and name collalating sequence.

*) Default host bootup is now specified as "-g onboot," meaning that first
the "onboot" group is booted and then any remaining enabled
containers in the NULL group are booted.

*) Adds documentation to lxc-autostart for -g processing order and
combinations.

*) Parameterizes bootgroups, options, and shutdown delay in init scripts
and services.

*) Update the various init scripts to use lxc-autostart in a similar way.

Reported-by: CDR <venefax@gmail.com>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
12 files changed:
.gitignore
config/init/systemd/Makefile.am
config/init/systemd/lxc.service [deleted file]
config/init/systemd/lxc.service.in [new file with mode: 0644]
config/init/sysvinit/lxc [deleted file]
config/init/sysvinit/lxc.in [new file with mode: 0644]
config/init/upstart/lxc.conf
configure.ac
doc/lxc-autostart.sgml.in
doc/lxc.container.conf.sgml.in
lxc.spec.in
src/lxc/lxc_autostart.c