5
0
mirror of git://git.proxmox.com/git/lxc.git synced 2025-03-22 06:50:41 +03:00

use forking mode for lxc@.service

This commit is contained in:
Wolfgang Bumiller 2017-02-02 11:17:34 +01:00
parent 63700eaf81
commit ce37e3349f
2 changed files with 35 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,34 @@
From ba028c2a3f73eec5e45842cc742a20471ee0d921 Mon Sep 17 00:00:00 2001
From: Wolfgang Bumiller <w.bumiller@proxmox.com>
Date: Thu, 2 Feb 2017 11:15:22 +0100
Subject: [PATCH] init: systemd: use forking mode in lxc@.service
To avoid dumping the entire console outputs into the
logs
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
---
config/init/systemd/lxc@.service.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/config/init/systemd/lxc@.service.in b/config/init/systemd/lxc@.service.in
index 44d11e8..52c6a27 100644
--- a/config/init/systemd/lxc@.service.in
+++ b/config/init/systemd/lxc@.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