]> git.proxmox.com Git - mirror_lxc.git/commit
lxc-fedrora: New patch for systemd detection and init configuration.
authorMichael H. Warfield <mhw@WittsEnd.com>
Thu, 15 Aug 2013 17:57:50 +0000 (13:57 -0400)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 15 Aug 2013 18:32:53 +0000 (13:32 -0500)
commitbf7d3153c925ca1404662a8fe031da27308f4187
tree0d830d57c953c924b49080f74c2e9cf908f9a54c
parent3d5e9f4801c0311a6300fc781a4c0a09a6d463fe
lxc-fedrora: New patch for systemd detection and init configuration.

Satoshi Matsumoto certainly had the right idea and in spotting a bug in
the lxc-fedora template for systemd detection.  Heart was in the right
spot but patch was not what we needed.

I've looked the patch code over for systemd support and init/upstart
support and modified the logic appropriately.  If /etc/systemd/system
exists, we'll do the right thing by systemd.  If /etc/rc.sysinit exists,
we'll do the right thing by init / upstart.  If both are installed,
we'll trying and accommodate both in case someone is playing games with
the two (I've done this).

Patch was trivial, just took more time to actually test it and create
some containers with it and verify them, than it did to code them.

Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-fedora.in