]> git.proxmox.com Git - mirror_lxc.git/commit - lxc.spec.in
init: Add upstart jobs and some more changes (v3)
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 16 Jan 2014 19:13:14 +0000 (14:13 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 16 Jan 2014 22:18:38 +0000 (17:18 -0500)
commitdc0682900a79cfb47fd9a416902129bfa68fdcbf
treefc62356c3c1bb24806157b7d5b04ec596ccc7591
parentff6bf8d18fdb3736ecb60d5b4bcf416dad7bb9c9
init: Add upstart jobs and some more changes (v3)

This adds the 3 upstart jobs that we've had in Ubuntu for a while:
 - lxc.conf: Main upstart job, triggers lxc-net.conf based on config
 - lxc-instance.conf: Triggered by lxc.conf for each auto-started container
 - lxc-net.conf: Triggered by lxc.conf, sets up lxcbr0, NAT, mangling, ...

In addition, there are two extra config files in /etc/default:
 - lxc: Allows setting some values like http proxying, disabling autostart, ...
 - lxc-net: Network configuration for the lxcbr0 bridge

This change also disables the sysv script for all distros but Oracle as
the current script won't work on either Ubuntu nor Debian and I suspect
quite a few more distros, so it's not nearly as distro-agnostic as we
thought.

For Debian, only install the upstart jobs and systemd unit.
For Ubuntu, only install the upstart jobs.

This change also moves all the init related stuff to config/init/

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
17 files changed:
config/Makefile.am
config/init/Makefile.am [new file with mode: 0644]
config/init/systemd/Makefile.am [new file with mode: 0644]
config/init/systemd/lxc-devsetup [new file with mode: 0755]
config/init/systemd/lxc.service [new file with mode: 0644]
config/init/sysvinit/Makefile.am [new file with mode: 0644]
config/init/sysvinit/lxc [new file with mode: 0755]
config/init/upstart/Makefile.am [new file with mode: 0644]
config/init/upstart/lxc-instance.conf [new file with mode: 0644]
config/init/upstart/lxc-net.conf [new file with mode: 0644]
config/init/upstart/lxc.conf [new file with mode: 0644]
configure.ac
lxc.spec.in
src/lxc/Makefile.am
src/lxc/lxc-devsetup [deleted file]
src/lxc/lxc.service [deleted file]
src/lxc/lxc.sysvinit [deleted file]