[pve-devel] applied: [PATCH lxc] use forking mode for lxc at .service

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Feb 2 14:23:02 CET 2017


applied, with the Delegate option change in a follow up patch

On Thu, Feb 02, 2017 at 11:21:39AM +0100, Wolfgang Bumiller wrote:
> ---
>  debian/patches/series                            |  1 +
>  debian/patches/use-forking-systemd-service.patch | 34 ++++++++++++++++++++++++
>  2 files changed, 35 insertions(+)
>  create mode 100644 debian/patches/use-forking-systemd-service.patch
> 
> diff --git a/debian/patches/series b/debian/patches/series
> index 9150df0..35ec401 100644
> --- a/debian/patches/series
> +++ b/debian/patches/series
> @@ -1,5 +1,6 @@
>  fix-systemd-service-depends.patch
>  remove-systemd-delegate-flag.patch
> +use-forking-systemd-service.patch
>  run-lxcnetaddbr.patch
>  deny-rw-mounting-of-sys-and-proc.patch
>  0001-separate-the-limiting-from-the-namespaced-cgroup-roo.patch
> diff --git a/debian/patches/use-forking-systemd-service.patch b/debian/patches/use-forking-systemd-service.patch
> new file mode 100644
> index 0000000..881c842
> --- /dev/null
> +++ b/debian/patches/use-forking-systemd-service.patch
> @@ -0,0 +1,34 @@
> +From ba028c2a3f73eec5e45842cc742a20471ee0d921 Mon Sep 17 00:00:00 2001
> +From: Wolfgang Bumiller <w.bumiller at proxmox.com>
> +Date: Thu, 2 Feb 2017 11:15:22 +0100
> +Subject: [PATCH] init: systemd: use forking mode in lxc at .service
> +
> +To avoid dumping the entire console outputs into the
> +logs
> +
> +Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
> +---
> + config/init/systemd/lxc at .service.in | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/config/init/systemd/lxc at .service.in b/config/init/systemd/lxc at .service.in
> +index 44d11e8..52c6a27 100644
> +--- a/config/init/systemd/lxc at .service.in
> ++++ b/config/init/systemd/lxc at .service.in
> +@@ -6,11 +6,11 @@ Wants=lxc.service
> + Documentation=man:lxc-start man:lxc
> + 
> + [Service]
> +-Type=simple
> ++Type=forking
> + KillMode=mixed
> + KillSignal=SIGPWR
> + TimeoutStopSec=120s
> +-ExecStart=@BINDIR@/lxc-start -F -n %i
> ++ExecStart=@BINDIR@/lxc-start -n %i
> + # Environment=BOOTUP=serial
> + # Environment=CONSOLETYPE=serial
> + Delegate=yes
> +-- 
> +2.1.4
> +
> -- 
> 2.1.4




More information about the pve-devel mailing list