]> git.proxmox.com Git - mirror_lxc.git/commit
add lxc-autostart support for sysv init systems
authorDwight Engen <dwight.engen@oracle.com>
Tue, 31 Dec 2013 19:21:55 +0000 (14:21 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 3 Jan 2014 19:49:04 +0000 (13:49 -0600)
commit420dfb599b22b8e39e6e51437d17213d4f778735
treeeb1ed62c1fd12d811e5e4d5586b00dba4e1042b1
parent0a83cbbb7592ccb4901a790e7677884d728df6f7
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@oracle.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
configure.ac
lxc.spec.in
src/lxc/Makefile.am
src/lxc/lxc.sysvinit [new file with mode: 0755]
templates/lxc-plamo.in