1. 13 Jan, 2014 8 commits
  2. 11 Jan, 2014 2 commits
  3. 10 Jan, 2014 4 commits
  4. 09 Jan, 2014 1 commit
  5. 08 Jan, 2014 2 commits
  6. 07 Jan, 2014 9 commits
  7. 06 Jan, 2014 11 commits
  8. 03 Jan, 2014 1 commit
    • add lxc-autostart support for sysv init systems · 420dfb59
      Dwight Engen authored
      This change updates the way init scripts get installed so that more
      than one init system can be supported. Instead of installing the
      systemd service file from the spec file, it should be installed at
      make install time, so that someone compiling from source also gets
      the unit file installed.
      
      Update the plamo template to use a lock file not named just
      /var/lock/subsys/lxc since the presence of that file is used by
      sysv init rc file to know if it should run the K01lxc script. This
      also makes it consistent with the other templates which use
      /var/lock/subsys/lxc-$template-name.
      Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com>
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
  9. 02 Jan, 2014 2 commits
    • snapshot: enforce keeping same backing store type (v2) · 0a83cbbb
      Serge Hallyn authored
      Stéphane noticed that lxc-snapshot of a dir-backed container
      created an overlayfs container.  The expectation is that the
      user can continue to modify the original container and later make
      a new snapshot, but this doesn't work with the existing behavior -
      the overlayfs clone will end up with the modified contents.
      
      So add a 'LXC_CLONE_KEEPBDEVTYPE' flag, which c->snapshot()
      passes to c->clone().
      
      Also add a LXC_CLONE_MAYBE_SNAPSHOT.  If this is set and a
      backing store does not support snapshotting, then proceed with
      a copy clone.
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
    • change lxc-autostart shutdown to behave like lxc-stop · a771fe18
      Dwight Engen authored
      It is desirable to have a mode where a soft shutdown is requested,
      but then do a hard shutdown if after some time period the container
      has not shut down. This the default behaviour of lxc-stop, but is
      not currently possible with lxc-autostart. This change makes this
      the default behaviour when shutdown is specified to lxc-autostart.
      This will be very useful for init scripts.
      
      An indefinte wait for soft shutdown (though I'm not sure how that
      would be useful) is still possible by passing a timeout of 0.
      
      Change default timeout value to 60 seconds to match lxc-stop
      Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com>
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>