[pve-devel] [PATCH v4 container 0/4] lxc@ service: fix dependencies

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Oct 10 09:17:14 CEST 2017


turns out v3 was incomplete because systemd generates a slice with
DefaultDependencies=yes for instances of a service template unit, even if the
template itself has DefaultDependencies=no.

introduce our own slice (with strangely escaped (file)name) to work around this
problem.

Fabian Grünbichler (4):
  build: install lxc@ snippets to correct location
  add new pve-container units
  switch to pve-container@ unit
  build: mark lxc at .service.d for future removal

 src/Makefile                         | 12 +++++++++---
 src/PVE/API2/LXC/Status.pm           |  2 +-
 src/PVE/VZDump/LXC.pm                |  2 +-
 src/lxc-pve-poststop-hook            |  7 ++++---
 src/lxc-pve-reboot-trigger           |  3 ++-
 src/pve-container at .service           | 19 +++++++++++++++++++
 "src/system-pve\\x2dcontainer.slice" |  9 +++++++++
 7 files changed, 45 insertions(+), 9 deletions(-)
 create mode 100644 src/pve-container at .service
 create mode 100644 "src/system-pve\\x2dcontainer.slice"

-- 
2.14.1





More information about the pve-devel mailing list