]> git.ipfire.org Git - thirdparty/lxc.git/commit
fixups to init script rework
authorDwight Engen <dwight.engen@oracle.com>
Fri, 26 Sep 2014 19:21:51 +0000 (15:21 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 29 Sep 2014 16:17:11 +0000 (12:17 -0400)
commitfce070c815604e863f4628ecceb172ffdbbb2465
treea7f0402af5f0415ba26461652b3c5ed511e26acd
parent0af993195cbd57cff700c7c90ee8f95c2a1ef8aa
fixups to init script rework

- move action() from common to sysvinit wrapper since its only really
  applicable for sysvinit and not the other init systems

- fix bug in action() fallback, need to shift away msg before executing action

- make lxc-net 98 so it starts before lxc-container (99), otherwise the lxcbr0
  won't be available when containers are autostarted

- make the default RUNTIME_PATH be /var/run instead of /run. On older
  distros (like ol6.5) /run doesn't exist. lxc-net will create this directory
  and attempt to create the dnsmasq.pid file in it, but this will fail when
  SELinux is enabled because the directory will have the default_t type.
  Newer systems have /var/run symlinked to /run so you get to the same place
  in that case.

- add %postun to remove lxc-dnsmasq user when pkgs are removed

- fix bug in lxc-oracle template that was creating /var/lock/subsys/lxc as
  a dir and interfering with the init scripts

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
.gitignore
config/init/common/lxc-containers.in
config/init/sysvinit/lxc-containers.in
config/init/sysvinit/lxc-net.in
lxc.spec.in
templates/lxc-oracle.in