]> git.proxmox.com Git - lxc.git/blame - debian/patches/pve/0008-PVE-Deprecated-Make-lxc-.service-forking.patch
bump version to 3.0.2+pve1-5
[lxc.git] / debian / patches / pve / 0008-PVE-Deprecated-Make-lxc-.service-forking.patch
CommitLineData
1513a0b5 1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
bc7e56ac
WB
2From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3Date: Mon, 20 Nov 2017 10:51:36 +0100
2d8021b3 4Subject: [PATCH] PVE: [Deprecated] Make lxc@.service forking
bc7e56ac
WB
5
6Previously the init process' output was dumped into the log
7files since the service used Type=simple and
8StandardOutput/Error=syslog.
9
2d8021b3
WB
10Deprecated, we provide pve-container@.service instead.
11
bc7e56ac
WB
12Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
13---
14 config/init/systemd/lxc@.service.in | 6 +++---
15 1 file changed, 3 insertions(+), 3 deletions(-)
16
17diff --git a/config/init/systemd/lxc@.service.in b/config/init/systemd/lxc@.service.in
18index a2aa2211..f312763c 100644
19--- a/config/init/systemd/lxc@.service.in
20+++ b/config/init/systemd/lxc@.service.in
21@@ -1,15 +1,15 @@
22 [Unit]
23 Description=LXC Container: %i
24 # This pulls in apparmor, dev-setup, lxc-net
25-After=lxc.service
26+After=lxc.service lxc-monitord.service
27 Wants=lxc.service
28 Documentation=man:lxc-start man:lxc
29
30 [Service]
31-Type=simple
32+Type=forking
33 KillMode=mixed
34 TimeoutStopSec=120s
35-ExecStart=@BINDIR@/lxc-start -F -n %i
36+ExecStart=@BINDIR@/lxc-start -n %i
37 ExecStop=@BINDIR@/lxc-stop -n %i
38 # Environment=BOOTUP=serial
39 # Environment=CONSOLETYPE=serial
40--
412.11.0
42