[lxc-devel] [lxc/lxc] 420dfb: add lxc-autostart support for sysv init systems

GitHub noreply at github.com
Fri Jan 3 19:49:17 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 420dfb599b22b8e39e6e51437d17213d4f778735
      https://github.com/lxc/lxc/commit/420dfb599b22b8e39e6e51437d17213d4f778735
  Author: Dwight Engen <dwight.engen at oracle.com>
  Date:   2014-01-03 (Fri, 03 Jan 2014)

  Changed paths:
    M configure.ac
    M lxc.spec.in
    M src/lxc/Makefile.am
    A src/lxc/lxc.sysvinit
    M templates/lxc-plamo.in

  Log Message:
  -----------
  add lxc-autostart support for sysv init systems

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: Dwight Engen <dwight.engen at oracle.com>
Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>




More information about the lxc-devel mailing list